#9D8F2B#9D8F2B

#9D8F2B is a light, moderate yellow. Relative luminance 0.270; OKLCH L 64.4% C 0.118 H 101.1°. Best body text is #000000 at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#9D8F2B
RGBrgb(157, 143, 43)
HSLhsl(53, 57%, 39%)
HSVhsv(53, 73%, 62%)
CMYKcmyk(0%, 8.9%, 72.6%, 38.4%)
CIE-LABlab(58.96, -6.37, 52.22)
CIE-LCHlch(58.96, 52.60, 96.96°)
OKLaboklab(64.41% -0.0228 0.1159)
OKLCHoklch(64.41% 0.118 101.1)
XYZxyz(24.1642, 26.9885, 6.2215)
Luminance0.2699 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8F2B #2B399D
analogous
#9D562B #9D8F2B #729D2B
triadic
#9D8F2B #2B9D8F #8F2B9D
tetradic
#9D8F2B #2B9D56 #2B399D #9D2B72
square
#9D8F2B #2B9D56 #2B399D #9D2B72
split-complementary
#9D8F2B #2B729D #562B9D
monochromatic
#3D3711 #6D631E #9D8F2B #CAB83C #D7CA6C

Accessibility & contrast

On white

3.28
#9D8F2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.40
#9D8F2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8F2B
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8F2B#FFFFFF#000000##000000
##9D8F2B1.003.286.406.40
#FFFFFF3.281.0021.0021.00
#0000006.4021.001.001.00
##0000006.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B1B
Deuteranopia (green-blind)
#A19031
Tritanopia (blue-blind)
#A9857B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9d8f2b;
/* rgb */ color: rgb(157, 143, 43);
/* oklch */ color: oklch(64.4% 0.118 101.1);
Tailwind
colors: {
  custom: {
    50: '#bdaf6b',
    500: '#9d8f2b',
    950: '#000000',
  },
}
SCSS
$custom: #9d8f2b;
$custom-light: #bdaf6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8f2b",
  "rgb": {
    "r": 157,
    "g": 143,
    "b": 43
  },
  "hsl": {
    "h": 52.632,
    "s": 57,
    "l": 39.216
  },
  "oklch": {
    "l": 0.64407,
    "c": 0.11809,
    "h": 101.1
  },
  "luminance": 0.26987
}

Semantic roles & 50–950 ramp

primary
#9D8F2B
secondary
#6671BD
accent
#5AE048
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9D8F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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