#8F7E1A#8F7E1A

#8F7E1A is a mid, moderate yellow. Relative luminance 0.208; OKLCH L 59.1% C 0.114 H 98.9°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#8F7E1A
RGBrgb(143, 126, 26)
HSLhsl(51, 69%, 33%)
HSVhsv(51, 82%, 56%)
CMYKcmyk(0%, 11.9%, 81.8%, 43.9%)
CIE-LABlab(52.77, -4.19, 52.09)
CIE-LCHlch(52.77, 52.26, 94.60°)
OKLaboklab(59.15% -0.0176 0.1128)
OKLCHoklch(59.15% 0.114 98.9)
XYZxyz(18.9760, 20.8369, 3.9995)
Luminance0.2084 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F7E1A #1A2B8F
analogous
#8F431A #8F7E1A #658F1A
triadic
#8F7E1A #1A8F7E #7E1A8F
tetradic
#8F7E1A #1A8F43 #1A2B8F #8F1A65
square
#8F7E1A #1A8F43 #1A2B8F #8F1A65
split-complementary
#8F7E1A #1A658F #431A8F
monochromatic
#272307 #5B5011 #8F7E1A #C3AC23 #DDC746

Accessibility & contrast

On white

4.06
#8F7E1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#8F7E1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F7E1A
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F7E1A#FFFFFF#000000##000000
##8F7E1A1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B00
Deuteranopia (green-blind)
#908122
Tritanopia (blue-blind)
#9B746C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8f7e1a;
/* rgb */ color: rgb(143, 126, 26);
/* oklch */ color: oklch(59.1% 0.114 98.9);
Tailwind
colors: {
  custom: {
    50: '#b4a361',
    500: '#8f7e1a',
    950: '#000000',
  },
}
SCSS
$custom: #8f7e1a;
$custom-light: #b4a361;
$custom-dark: #000000;
JSON
{
  "hex": "#8f7e1a",
  "rgb": {
    "r": 143,
    "g": 126,
    "b": 26
  },
  "hsl": {
    "h": 51.282,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.59145,
    "c": 0.11413,
    "h": 98.9
  },
  "luminance": 0.20836
}

Semantic roles & 50–950 ramp

primary
#8F7E1A
secondary
#4658BF
accent
#55EC3C
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#120F05
muted
#817E7A

Preview Lab

Preview with #8F7E1A

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

Preview Lab → · Contrast checker → · Palette generator →

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