#9F9B2F#9F9B2F

#9F9B2F is a light, vivid yellow. Relative luminance 0.310; OKLCH L 67.3% C 0.126 H 107.2°. Best body text is #000000 at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#9F9B2F
RGBrgb(159, 155, 47)
HSLhsl(58, 54%, 40%)
HSVhsv(58, 70%, 62%)
CMYKcmyk(0%, 2.5%, 70.4%, 37.6%)
CIE-LABlab(62.52, -11.69, 54.22)
CIE-LCHlch(62.52, 55.46, 102.16°)
OKLaboklab(67.29% -0.0375 0.1208)
OKLCHoklch(67.29% 0.126 107.2)
XYZxyz(26.5335, 31.0197, 7.2785)
Luminance0.3102 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F9B2F #2F339F
analogous
#9F632F #9F9B2F #6B9F2F
triadic
#9F9B2F #2F9F9B #9B2F9F
tetradic
#9F9B2F #2F9F63 #2F339F #9F2F6B
square
#9F9B2F #2F9F63 #2F339F #9F2F6B
split-complementary
#9F9B2F #2F6B9F #632F9F
monochromatic
#413F13 #706D21 #9F9B2F #C8C344 #D6D273

Accessibility & contrast

On white

2.92
#9F9B2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.20
#9F9B2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9F9B2F
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F9B2F#FFFFFF#000000##000000
##9F9B2F1.002.927.207.20
#FFFFFF2.921.0021.0021.00
#0000007.2021.001.001.00
##0000007.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A8951E
Deuteranopia (green-blind)
#AA9936
Tritanopia (blue-blind)
#AB9186
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #9f9b2f;
/* rgb */ color: rgb(159, 155, 47);
/* oklch */ color: oklch(67.3% 0.126 107.2);
Tailwind
colors: {
  custom: {
    50: '#bfb86f',
    500: '#9f9b2f',
    950: '#000000',
  },
}
SCSS
$custom: #9f9b2f;
$custom-light: #bfb86f;
$custom-dark: #000000;
JSON
{
  "hex": "#9f9b2f",
  "rgb": {
    "r": 159,
    "g": 155,
    "b": 47
  },
  "hsl": {
    "h": 57.857,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.67292,
    "c": 0.12645,
    "h": 107.2
  },
  "luminance": 0.31019
}

Semantic roles & 50–950 ramp

primary
#9F9B2F
secondary
#6D6FBD
accent
#4FDE4A
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131108
muted
#82807B

Preview Lab

Preview with #9F9B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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