#8F9D1F#8F9D1F

#8F9D1F is a light, vivid yellow. Relative luminance 0.301; OKLCH L 66.3% C 0.142 H 116.2°. Best body text is #000000 at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#8F9D1F
RGBrgb(143, 157, 31)
HSLhsl(67, 67%, 37%)
HSVhsv(67, 80%, 62%)
CMYKcmyk(8.9%, 0%, 80.3%, 38.4%)
CIE-LABlab(61.70, -20.50, 58.49)
CIE-LCHlch(61.70, 61.98, 109.32°)
OKLaboklab(66.28% -0.0626 0.1275)
OKLCHoklch(66.28% 0.142 116.2)
XYZxyz(23.6326, 30.0529, 5.8519)
Luminance0.3005 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F9D1F #2D1F9D
analogous
#9D6C1F #8F9D1F #509D1F
triadic
#8F9D1F #1F8F9D #9D1F8F
tetradic
#8F9D1F #1F9D6C #2D1F9D #9D1F50
square
#8F9D1F #1F9D6C #2D1F9D #9D1F50
split-complementary
#8F9D1F #1F509D #6C1F9D
monochromatic
#32370B #606A15 #8F9D1F #BED029 #CFDE58

Accessibility & contrast

On white

3.00
#8F9D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

7.01
#8F9D1F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8F9D1F
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F9D1F#FFFFFF#000000##000000
##8F9D1F1.003.007.017.01
#FFFFFF3.001.0021.0021.00
#0000007.0121.001.001.00
##0000007.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A89400
Deuteranopia (green-blind)
#A7962B
Tritanopia (blue-blind)
#999486
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #8f9d1f;
/* rgb */ color: rgb(143, 157, 31);
/* oklch */ color: oklch(66.3% 0.142 116.2);
Tailwind
colors: {
  custom: {
    50: '#b3b967',
    500: '#8f9d1f',
    950: '#000000',
  },
}
SCSS
$custom: #8f9d1f;
$custom-light: #b3b967;
$custom-dark: #000000;
JSON
{
  "hex": "#8f9d1f",
  "rgb": {
    "r": 143,
    "g": 157,
    "b": 31
  },
  "hsl": {
    "h": 66.667,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.66282,
    "c": 0.14201,
    "h": 116.2
  },
  "luminance": 0.30053
}

Semantic roles & 50–950 ramp

primary
#8F9D1F
secondary
#6256C2
accent
#3EEA51
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111107
muted
#80807A

Preview Lab

Preview with #8F9D1F

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

Preview Lab → · Contrast checker → · Palette generator →

#8F9D1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva