#9F8B27#9F8B27

#9F8B27 is a light, moderate yellow. Relative luminance 0.260; OKLCH L 63.7% C 0.117 H 97.4°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#9F8B27
RGBrgb(159, 139, 39)
HSLhsl(50, 61%, 39%)
HSVhsv(50, 75%, 62%)
CMYKcmyk(0%, 12.6%, 75.5%, 37.6%)
CIE-LABlab(58.02, -3.48, 52.91)
CIE-LCHlch(58.02, 53.03, 93.76°)
OKLaboklab(63.7% -0.0151 0.1165)
OKLCHoklch(63.7% 0.117 97.4)
XYZxyz(23.8981, 25.9839, 5.6757)
Luminance0.2598 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8B27 #273B9F
analogous
#9F4F27 #9F8B27 #779F27
triadic
#9F8B27 #279F8B #8B279F
tetradic
#9F8B27 #279F4F #273B9F #9F2777
square
#9F8B27 #279F4F #273B9F #9F2777
split-complementary
#9F8B27 #27779F #4F279F
monochromatic
#3D350F #6E601B #9F8B27 #CEB436 #DAC767

Accessibility & contrast

On white

3.39
#9F8B27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.20
#9F8B27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8B27
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8B27#FFFFFF#000000##000000
##9F8B271.003.396.206.20
#FFFFFF3.391.0021.0021.00
#0000006.2021.001.001.00
##0000006.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#998815
Deuteranopia (green-blind)
#9F8E2D
Tritanopia (blue-blind)
#AC8078
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9f8b27;
/* rgb */ color: rgb(159, 139, 39);
/* oklch */ color: oklch(63.7% 0.117 97.4);
Tailwind
colors: {
  custom: {
    50: '#bfac69',
    500: '#9f8b27',
    950: '#000000',
  },
}
SCSS
$custom: #9f8b27;
$custom-light: #bfac69;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8b27",
  "rgb": {
    "r": 159,
    "g": 139,
    "b": 39
  },
  "hsl": {
    "h": 50,
    "s": 60.606,
    "l": 38.824
  },
  "oklch": {
    "l": 0.63697,
    "c": 0.11746,
    "h": 97.4
  },
  "luminance": 0.25983
}

Semantic roles & 50–950 ramp

primary
#9F8B27
secondary
#6272C0
accent
#5FE444
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F8B27

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

Preview Lab → · Contrast checker → · Palette generator →

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