#9F9B2D#9F9B2D

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

Color values

HEX#9F9B2D
RGBrgb(159, 155, 45)
HSLhsl(58, 56%, 40%)
HSVhsv(58, 72%, 62%)
CMYKcmyk(0%, 2.5%, 71.7%, 37.6%)
CIE-LABlab(62.51, -11.79, 54.97)
CIE-LCHlch(62.51, 56.22, 102.11°)
OKLaboklab(67.28% -0.038 0.122)
OKLCHoklch(67.28% 0.128 107.3)
XYZxyz(26.4941, 31.0040, 7.0709)
Luminance0.3100 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F9B2D #2D319F
analogous
#9F622D #9F9B2D #6A9F2D
triadic
#9F9B2D #2D9F9B #9B2D9F
tetradic
#9F9B2D #2D9F62 #2D319F #9F2D6A
square
#9F9B2D #2D9F62 #2D319F #9F2D6A
split-complementary
#9F9B2D #2D6A9F #622D9F
monochromatic
#403E12 #6F6D20 #9F9B2D #C9C440 #D6D370

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F9B2D#FFFFFF#000000##000000
##9F9B2D1.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)
#A8951A
Deuteranopia (green-blind)
#AA9935
Tritanopia (blue-blind)
#AB9185
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #9f9b2d;
/* rgb */ color: rgb(159, 155, 45);
/* oklch */ color: oklch(67.3% 0.128 107.3);
Tailwind
colors: {
  custom: {
    50: '#bfb86e',
    500: '#9f9b2d',
    950: '#000000',
  },
}
SCSS
$custom: #9f9b2d;
$custom-light: #bfb86e;
$custom-dark: #000000;
JSON
{
  "hex": "#9f9b2d",
  "rgb": {
    "r": 159,
    "g": 155,
    "b": 45
  },
  "hsl": {
    "h": 57.895,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.67277,
    "c": 0.12777,
    "h": 107.3
  },
  "luminance": 0.31003
}

Semantic roles & 50–950 ramp

primary
#9F9B2D
secondary
#6A6DBE
accent
#4EDF49
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131107
muted
#82807A

Preview Lab

Preview with #9F9B2D

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

Preview Lab → · Contrast checker → · Palette generator →

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