#9F8927#9F8927

#9F8927 is a light, moderate yellow. Relative luminance 0.254; OKLCH L 63.3% C 0.116 H 95.9°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#9F8927
RGBrgb(159, 137, 39)
HSLhsl(49, 61%, 39%)
HSVhsv(49, 75%, 62%)
CMYKcmyk(0%, 13.8%, 75.5%, 37.6%)
CIE-LABlab(57.47, -2.38, 52.39)
CIE-LCHlch(57.47, 52.44, 92.60°)
OKLaboklab(63.26% -0.012 0.1154)
OKLCHoklch(63.26% 0.116 95.9)
XYZxyz(23.6112, 25.4100, 5.5800)
Luminance0.2541 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8927 #273D9F
analogous
#9F4D27 #9F8927 #799F27
triadic
#9F8927 #279F89 #89279F
tetradic
#9F8927 #279F4D #273D9F #9F2779
square
#9F8927 #279F4D #273D9F #9F2779
split-complementary
#9F8927 #27799F #4D279F
monochromatic
#3D340F #6E5F1B #9F8927 #CEB236 #DAC567

Accessibility & contrast

On white

3.45
#9F8927 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.08
#9F8927 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8927
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8927#FFFFFF#000000##000000
##9F89271.003.456.086.08
#FFFFFF3.451.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#988616
Deuteranopia (green-blind)
#9D8D2D
Tritanopia (blue-blind)
#AC7E76
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9f8927;
/* rgb */ color: rgb(159, 137, 39);
/* oklch */ color: oklch(63.3% 0.116 95.9);
Tailwind
colors: {
  custom: {
    50: '#bfab68',
    500: '#9f8927',
    950: '#000000',
  },
}
SCSS
$custom: #9f8927;
$custom-light: #bfab68;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8927",
  "rgb": {
    "r": 159,
    "g": 137,
    "b": 39
  },
  "hsl": {
    "h": 49,
    "s": 60.606,
    "l": 38.824
  },
  "oklch": {
    "l": 0.63262,
    "c": 0.11599,
    "h": 95.9
  },
  "luminance": 0.25409
}

Semantic roles & 50–950 ramp

primary
#9F8927
secondary
#6273C0
accent
#61E444
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F8927

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

Preview Lab → · Contrast checker → · Palette generator →

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