#9F8A2B#9F8A2B

#9F8A2B is a light, moderate yellow. Relative luminance 0.257; OKLCH L 63.5% C 0.114 H 96.3°. Best body text is #000000 at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#9F8A2B
RGBrgb(159, 138, 43)
HSLhsl(49, 57%, 40%)
HSVhsv(49, 73%, 62%)
CMYKcmyk(0%, 13.2%, 73%, 37.6%)
CIE-LABlab(57.77, -2.74, 51.11)
CIE-LCHlch(57.77, 51.18, 93.06°)
OKLaboklab(63.51% -0.0126 0.1135)
OKLCHoklch(63.51% 0.114 96.3)
XYZxyz(23.8238, 25.7236, 5.9953)
Luminance0.2572 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8A2B #2B409F
analogous
#9F502B #9F8A2B #7A9F2B
triadic
#9F8A2B #2B9F8A #8A2B9F
tetradic
#9F8A2B #2B9F50 #2B409F #9F2B7A
square
#9F8A2B #2B9F50 #2B409F #9F2B7A
split-complementary
#9F8A2B #2B7A9F #502B9F
monochromatic
#3F3611 #6F601E #9F8A2B #CAB13D #D7C46D

Accessibility & contrast

On white

3.42
#9F8A2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.14
#9F8A2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8A2B
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8A2B#FFFFFF#000000##000000
##9F8A2B1.003.426.146.14
#FFFFFF3.421.0021.0021.00
#0000006.1421.001.001.00
##0000006.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#98871C
Deuteranopia (green-blind)
#9E8E31
Tritanopia (blue-blind)
#AC7F77
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9f8a2b;
/* rgb */ color: rgb(159, 138, 43);
/* oklch */ color: oklch(63.5% 0.114 96.3);
Tailwind
colors: {
  custom: {
    50: '#bfab6b',
    500: '#9f8a2b',
    950: '#000000',
  },
}
SCSS
$custom: #9f8a2b;
$custom-light: #bfab6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8a2b",
  "rgb": {
    "r": 159,
    "g": 138,
    "b": 43
  },
  "hsl": {
    "h": 49.138,
    "s": 57.426,
    "l": 39.608
  },
  "oklch": {
    "l": 0.63509,
    "c": 0.11415,
    "h": 96.3
  },
  "luminance": 0.25722
}

Semantic roles & 50–950 ramp

primary
#9F8A2B
secondary
#6777BE
accent
#63E147
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F8A2B

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

Preview Lab → · Contrast checker → · Palette generator →

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