#9D9840#9D9840

#9D9840 is a light, moderate yellow. Relative luminance 0.300; OKLCH L 66.6% C 0.110 H 106.0°. Best body text is #000000 at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#9D9840
RGBrgb(157, 152, 64)
HSLhsl(57, 42%, 43%)
HSVhsv(57, 59%, 62%)
CMYKcmyk(0%, 3.2%, 59.2%, 38.4%)
CIE-LABlab(61.65, -9.88, 45.91)
CIE-LCHlch(61.65, 46.96, 102.14°)
OKLaboklab(66.6% -0.0303 0.1059)
OKLCHoklch(66.6% 0.11 106)
XYZxyz(26.0591, 29.9956, 9.2665)
Luminance0.2999 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D9840 #40459D
analogous
#9D6940 #9D9840 #739D40
triadic
#9D9840 #409D98 #98409D
tetradic
#9D9840 #409D69 #40459D #9D4073
square
#9D9840 #409D69 #40459D #9D4073
split-complementary
#9D9840 #40739D #69409D
monochromatic
#46441D #726E2E #9D9840 #BDB85D #CFCB89

Accessibility & contrast

On white

3.00
#9D9840 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

7.00
#9D9840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9D9840
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D9840#FFFFFF#000000##000000
##9D98401.003.007.007.00
#FFFFFF3.001.0021.0021.00
#0000007.0021.001.001.00
##0000007.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A49336
Deuteranopia (green-blind)
#A69745
Tritanopia (blue-blind)
#A88F85
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #9d9840;
/* rgb */ color: rgb(157, 152, 64);
/* oklch */ color: oklch(66.6% 0.110 106.0);
Tailwind
colors: {
  custom: {
    50: '#bcb678',
    500: '#9d9840',
    950: '#000000',
  },
}
SCSS
$custom: #9d9840;
$custom-light: #bcb678;
$custom-dark: #000000;
JSON
{
  "hex": "#9d9840",
  "rgb": {
    "r": 157,
    "g": 152,
    "b": 64
  },
  "hsl": {
    "h": 56.774,
    "s": 42.081,
    "l": 43.333
  },
  "oklch": {
    "l": 0.66599,
    "c": 0.11015,
    "h": 106
  },
  "luminance": 0.29995
}

Semantic roles & 50–950 ramp

primary
#9D9840
secondary
#7F82B9
accent
#5DD256
background
#FBFBF7
surface
#F7F6ED
border
#D0D0C8
text
#121109
muted
#81807B

Preview Lab

Preview with #9D9840

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

Preview Lab → · Contrast checker → · Palette generator →

#9D9840 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva