#989D21#989D21

#989D21 is a light, vivid yellow. Relative luminance 0.309; OKLCH L 67.0% C 0.138 H 112.0°. Best body text is #000000 at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#989D21
RGBrgb(152, 157, 33)
HSLhsl(62, 65%, 37%)
HSVhsv(62, 79%, 62%)
CMYKcmyk(3.2%, 0%, 79%, 38.4%)
CIE-LABlab(62.42, -16.47, 58.81)
CIE-LCHlch(62.42, 61.07, 105.65°)
OKLaboklab(67.04% -0.0518 0.1282)
OKLCHoklch(67.04% 0.138 112)
XYZxyz(25.2812, 30.8998, 6.0711)
Luminance0.3090 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#989D21 #26219D
analogous
#9D6421 #989D21 #5A9D21
triadic
#989D21 #21989D #9D2198
tetradic
#989D21 #219D64 #26219D #9D215A
square
#989D21 #219D64 #26219D #9D215A
split-complementary
#989D21 #215A9D #64219D
monochromatic
#36380C #676A16 #989D21 #C9D02C #D7DD5C

Accessibility & contrast

On white

2.92
#989D21 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.18
#989D21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #989D21
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##989D21#FFFFFF#000000##000000
##989D211.002.927.187.18
#FFFFFF2.921.0021.0021.00
#0000007.1821.001.001.00
##0000007.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA9500
Deuteranopia (green-blind)
#AA982C
Tritanopia (blue-blind)
#A39386
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #989d21;
/* rgb */ color: rgb(152, 157, 33);
/* oklch */ color: oklch(67.0% 0.138 112.0);
Tailwind
colors: {
  custom: {
    50: '#bab968',
    500: '#989d21',
    950: '#000000',
  },
}
SCSS
$custom: #989d21;
$custom-light: #bab968;
$custom-dark: #000000;
JSON
{
  "hex": "#989d21",
  "rgb": {
    "r": 152,
    "g": 157,
    "b": 33
  },
  "hsl": {
    "h": 62.419,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.67042,
    "c": 0.13823,
    "h": 112
  },
  "luminance": 0.30899
}

Semantic roles & 50–950 ramp

primary
#989D21
secondary
#5D59C1
accent
#40E846
background
#FBFBF6
surface
#F7F6EB
border
#D0D0C6
text
#121107
muted
#81807A

Preview Lab

Preview with #989D21

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

Preview Lab → · Contrast checker → · Palette generator →

#989D21 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva