#9D902B#9D902B

#9D902B is a light, moderate yellow. Relative luminance 0.273; OKLCH L 64.6% C 0.119 H 101.8°. Best body text is #000000 at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#9D902B
RGBrgb(157, 144, 43)
HSLhsl(53, 57%, 39%)
HSVhsv(53, 73%, 62%)
CMYKcmyk(0%, 8.3%, 72.6%, 38.4%)
CIE-LABlab(59.24, -6.91, 52.49)
CIE-LCHlch(59.24, 52.94, 97.50°)
OKLaboklab(64.63% -0.0243 0.1164)
OKLCHoklch(64.63% 0.119 101.8)
XYZxyz(24.3150, 27.2901, 6.2718)
Luminance0.2729 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D902B #2B389D
analogous
#9D572B #9D902B #719D2B
triadic
#9D902B #2B9D90 #902B9D
tetradic
#9D902B #2B9D57 #2B389D #9D2B71
square
#9D902B #2B9D57 #2B389D #9D2B71
split-complementary
#9D902B #2B719D #572B9D
monochromatic
#3D3811 #6D641E #9D902B #CAB93C #D7CA6C

Accessibility & contrast

On white

3.25
#9D902B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.46
#9D902B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D902B
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D902B#FFFFFF#000000##000000
##9D902B1.003.256.466.46
#FFFFFF3.251.0021.0021.00
#0000006.4621.001.001.00
##0000006.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9E8C1B
Deuteranopia (green-blind)
#A19132
Tritanopia (blue-blind)
#A9867C
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #9d902b;
/* rgb */ color: rgb(157, 144, 43);
/* oklch */ color: oklch(64.6% 0.119 101.8);
Tailwind
colors: {
  custom: {
    50: '#bdb06b',
    500: '#9d902b',
    950: '#000000',
  },
}
SCSS
$custom: #9d902b;
$custom-light: #bdb06b;
$custom-dark: #000000;
JSON
{
  "hex": "#9d902b",
  "rgb": {
    "r": 157,
    "g": 144,
    "b": 43
  },
  "hsl": {
    "h": 53.158,
    "s": 57,
    "l": 39.216
  },
  "oklch": {
    "l": 0.64628,
    "c": 0.11895,
    "h": 101.8
  },
  "luminance": 0.27289
}

Semantic roles & 50–950 ramp

primary
#9D902B
secondary
#6670BD
accent
#59E048
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9D902B

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

Preview Lab → · Contrast checker → · Palette generator →

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