#9F8F27#9F8F27

#9F8F27 is a light, vivid yellow. Relative luminance 0.272; OKLCH L 64.6% C 0.121 H 100.2°. Best body text is #000000 at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#9F8F27
RGBrgb(159, 143, 39)
HSLhsl(52, 61%, 39%)
HSVhsv(52, 75%, 62%)
CMYKcmyk(0%, 10.1%, 75.5%, 37.6%)
CIE-LABlab(59.13, -5.66, 53.96)
CIE-LCHlch(59.13, 54.26, 95.99°)
OKLaboklab(64.57% -0.0213 0.1187)
OKLCHoklch(64.57% 0.121 100.2)
XYZxyz(24.4879, 27.1635, 5.8723)
Luminance0.2716 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8F27 #27379F
analogous
#9F5327 #9F8F27 #739F27
triadic
#9F8F27 #279F8F #8F279F
tetradic
#9F8F27 #279F53 #27379F #9F2773
square
#9F8F27 #279F53 #27379F #9F2773
split-complementary
#9F8F27 #27739F #53279F
monochromatic
#3D370F #6E631B #9F8F27 #CEB936 #DACA67

Accessibility & contrast

On white

3.26
#9F8F27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.43
#9F8F27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8F27
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8F27#FFFFFF#000000##000000
##9F8F271.003.266.436.43
#FFFFFF3.261.0021.0021.00
#0000006.4321.001.001.00
##0000006.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B14
Deuteranopia (green-blind)
#A2912E
Tritanopia (blue-blind)
#AC847B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9f8f27;
/* rgb */ color: rgb(159, 143, 39);
/* oklch */ color: oklch(64.6% 0.121 100.2);
Tailwind
colors: {
  custom: {
    50: '#bfaf69',
    500: '#9f8f27',
    950: '#000000',
  },
}
SCSS
$custom: #9f8f27;
$custom-light: #bfaf69;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8f27",
  "rgb": {
    "r": 159,
    "g": 143,
    "b": 39
  },
  "hsl": {
    "h": 52,
    "s": 60.606,
    "l": 38.824
  },
  "oklch": {
    "l": 0.64572,
    "c": 0.12061,
    "h": 100.2
  },
  "luminance": 0.27162
}

Semantic roles & 50–950 ramp

primary
#9F8F27
secondary
#626FC0
accent
#59E444
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F8F27

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

Preview Lab → · Contrast checker → · Palette generator →

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