#9E8F1F#9E8F1F

#9E8F1F is a light, vivid yellow. Relative luminance 0.270; OKLCH L 64.4% C 0.125 H 101.2°. Best body text is #000000 at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#9E8F1F
RGBrgb(158, 143, 31)
HSLhsl(53, 67%, 37%)
HSVhsv(53, 80%, 62%)
CMYKcmyk(0%, 9.5%, 80.4%, 38%)
CIE-LABlab(58.99, -6.44, 56.55)
CIE-LCHlch(58.99, 56.92, 96.50°)
OKLaboklab(64.43% -0.0242 0.1227)
OKLCHoklch(64.43% 0.125 101.2)
XYZxyz(24.1715, 27.0141, 5.2371)
Luminance0.2701 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8F1F #1F2E9E
analogous
#9E4F1F #9E8F1F #6E9E1F
triadic
#9E8F1F #1F9E8F #8F1F9E
tetradic
#9E8F1F #1F9E4F #1F2E9E #9E1F6E
square
#9E8F1F #1F9E4F #1F2E9E #9E1F6E
split-complementary
#9E8F1F #1F6E9E #4F1F9E
monochromatic
#38320B #6B6115 #9E8F1F #D1BD29 #DECF59

Accessibility & contrast

On white

3.28
#9E8F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.40
#9E8F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8F1F
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8F1F#FFFFFF#000000##000000
##9E8F1F1.003.286.406.40
#FFFFFF3.281.0021.0021.00
#0000006.4021.001.001.00
##0000006.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B00
Deuteranopia (green-blind)
#A29128
Tritanopia (blue-blind)
#AB847A
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9e8f1f;
/* rgb */ color: rgb(158, 143, 31);
/* oklch */ color: oklch(64.4% 0.125 101.2);
Tailwind
colors: {
  custom: {
    50: '#bfaf65',
    500: '#9e8f1f',
    950: '#000000',
  },
}
SCSS
$custom: #9e8f1f;
$custom-light: #bfaf65;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8f1f",
  "rgb": {
    "r": 158,
    "g": 143,
    "b": 31
  },
  "hsl": {
    "h": 52.913,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.64426,
    "c": 0.12505,
    "h": 101.2
  },
  "luminance": 0.27013
}

Semantic roles & 50–950 ramp

primary
#9E8F1F
secondary
#5663C2
accent
#52EA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9E8F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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