#8F7E1B#8F7E1B

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

Color values

HEX#8F7E1B
RGBrgb(143, 126, 27)
HSLhsl(51, 68%, 33%)
HSVhsv(51, 81%, 56%)
CMYKcmyk(0%, 11.9%, 81.1%, 43.9%)
CIE-LABlab(52.78, -4.16, 51.77)
CIE-LCHlch(52.78, 51.93, 94.59°)
OKLaboklab(59.15% -0.0174 0.1123)
OKLCHoklch(59.15% 0.114 98.8)
XYZxyz(18.9874, 20.8415, 4.0594)
Luminance0.2084 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F7E1B #1B2C8F
analogous
#8F441B #8F7E1B #668F1B
triadic
#8F7E1B #1B8F7E #7E1B8F
tetradic
#8F7E1B #1B8F44 #1B2C8F #8F1B66
square
#8F7E1B #1B8F44 #1B2C8F #8F1B66
split-complementary
#8F7E1B #1B668F #441B8F
monochromatic
#282308 #5C5111 #8F7E1B #C2AB25 #DCC748

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F7E1B#FFFFFF#000000##000000
##8F7E1B1.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)
#8B7B01
Deuteranopia (green-blind)
#908122
Tritanopia (blue-blind)
#9B746C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8f7e1b;
/* rgb */ color: rgb(143, 126, 27);
/* oklch */ color: oklch(59.2% 0.114 98.8);
Tailwind
colors: {
  custom: {
    50: '#b4a361',
    500: '#8f7e1b',
    950: '#000000',
  },
}
SCSS
$custom: #8f7e1b;
$custom-light: #b4a361;
$custom-dark: #000000;
JSON
{
  "hex": "#8f7e1b",
  "rgb": {
    "r": 143,
    "g": 126,
    "b": 27
  },
  "hsl": {
    "h": 51.207,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.5915,
    "c": 0.11363,
    "h": 98.8
  },
  "luminance": 0.2084
}

Semantic roles & 50–950 ramp

primary
#8F7E1B
secondary
#4859BE
accent
#56EB3D
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#120F05
muted
#817E7A

Preview Lab

Preview with #8F7E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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