#9F8D2C#9F8D2C

#9F8D2C is a light, moderate yellow. Relative luminance 0.266; OKLCH L 64.2% C 0.116 H 98.4°. Best body text is #000000 at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#9F8D2C
RGBrgb(159, 141, 44)
HSLhsl(51, 57%, 40%)
HSVhsv(51, 72%, 62%)
CMYKcmyk(0%, 11.3%, 72.3%, 37.6%)
CIE-LABlab(58.61, -4.33, 51.53)
CIE-LCHlch(58.61, 51.71, 94.80°)
OKLaboklab(64.17% -0.017 0.1145)
OKLCHoklch(64.17% 0.116 98.4)
XYZxyz(24.2787, 26.6037, 6.2386)
Luminance0.2660 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8D2C #2C3E9F
analogous
#9F542C #9F8D2C #779F2C
triadic
#9F8D2C #2C9F8D #8D2C9F
tetradic
#9F8D2C #2C9F54 #2C3E9F #9F2C77
square
#9F8D2C #2C9F54 #2C3E9F #9F2C77
split-complementary
#9F8D2C #2C779F #542C9F
monochromatic
#3F3811 #6F621F #9F8D2C #CAB43E #D7C76E

Accessibility & contrast

On white

3.32
#9F8D2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.32
#9F8D2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8D2C
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8D2C#FFFFFF#000000##000000
##9F8D2C1.003.326.326.32
#FFFFFF3.321.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B891D
Deuteranopia (green-blind)
#A09032
Tritanopia (blue-blind)
#AC827A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9f8d2c;
/* rgb */ color: rgb(159, 141, 44);
/* oklch */ color: oklch(64.2% 0.116 98.4);
Tailwind
colors: {
  custom: {
    50: '#bfae6c',
    500: '#9f8d2c',
    950: '#000000',
  },
}
SCSS
$custom: #9f8d2c;
$custom-light: #bfae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8d2c",
  "rgb": {
    "r": 159,
    "g": 141,
    "b": 44
  },
  "hsl": {
    "h": 50.609,
    "s": 56.65,
    "l": 39.804
  },
  "oklch": {
    "l": 0.6417,
    "c": 0.11578,
    "h": 98.4
  },
  "luminance": 0.26603
}

Semantic roles & 50–950 ramp

primary
#9F8D2C
secondary
#6976BE
accent
#60E048
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F8D2C

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

Preview Lab → · Contrast checker → · Palette generator →

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