#98A71B#98A71B

#98A71B is a light, vivid yellow. Relative luminance 0.344; OKLCH L 69.3% C 0.152 H 116.2°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#98A71B
RGBrgb(152, 167, 27)
HSLhsl(66, 72%, 38%)
HSVhsv(66, 84%, 65%)
CMYKcmyk(9%, 0%, 83.8%, 34.5%)
CIE-LABlab(65.27, -21.77, 62.96)
CIE-LCHlch(65.27, 66.61, 109.07°)
OKLaboklab(69.32% -0.0668 0.136)
OKLCHoklch(69.32% 0.152 116.2)
XYZxyz(26.9662, 34.3924, 6.2545)
Luminance0.3439 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98A71B #2A1BA7
analogous
#A7701B #98A71B #52A71B
triadic
#98A71B #1B98A7 #A71B98
tetradic
#98A71B #1BA770 #2A1BA7 #A71B52
square
#98A71B #1BA770 #2A1BA7 #A71B52
split-complementary
#98A71B #1B52A7 #701BA7
monochromatic
#383E0A #687212 #98A71B #C8DC24 #D5E458

Accessibility & contrast

On white

2.67
#98A71B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.88
#98A71B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98A71B
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98A71B#FFFFFF#000000##000000
##98A71B1.002.677.887.88
#FFFFFF2.671.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E00
Deuteranopia (green-blind)
#B29F2A
Tritanopia (blue-blind)
#A29D8E
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #98a71b;
/* rgb */ color: rgb(152, 167, 27);
/* oklch */ color: oklch(69.3% 0.152 116.2);
Tailwind
colors: {
  custom: {
    50: '#bac167',
    500: '#98a71b',
    950: '#000000',
  },
}
SCSS
$custom: #98a71b;
$custom-light: #bac167;
$custom-dark: #000000;
JSON
{
  "hex": "#98a71b",
  "rgb": {
    "r": 152,
    "g": 167,
    "b": 27
  },
  "hsl": {
    "h": 66.429,
    "s": 72.165,
    "l": 38.039
  },
  "oklch": {
    "l": 0.6932,
    "c": 0.15153,
    "h": 116.2
  },
  "luminance": 0.34392
}

Semantic roles & 50–950 ramp

primary
#98A71B
secondary
#6256C8
accent
#39EF4C
background
#FBFBF6
surface
#F7F7EB
border
#D0D0C6
text
#121207
muted
#81817A

Preview Lab

Preview with #98A71B

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#98A71B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva