#8F7D2A#8F7D2A

#8F7D2A is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 59.0% C 0.103 H 96.8°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#8F7D2A
RGBrgb(143, 125, 42)
HSLhsl(49, 55%, 36%)
HSVhsv(49, 71%, 56%)
CMYKcmyk(0%, 12.6%, 70.6%, 43.9%)
CIE-LABlab(52.59, -2.89, 45.81)
CIE-LCHlch(52.59, 45.90, 93.61°)
OKLaboklab(59.04% -0.0122 0.1027)
OKLCHoklch(59.04% 0.103 96.8)
XYZxyz(19.0801, 20.6750, 5.1757)
Luminance0.2067 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F7D2A #2A3C8F
analogous
#8F4B2A #8F7D2A #6F8F2A
triadic
#8F7D2A #2A8F7D #7D2A8F
tetradic
#8F7D2A #2A8F4B #2A3C8F #8F2A6F
square
#8F7D2A #2A8F4B #2A3C8F #8F2A6F
split-complementary
#8F7D2A #2A6F8F #4B2A8F
monochromatic
#302A0E #60541C #8F7D2A #BEA638 #D1BD62

Accessibility & contrast

On white

4.09
#8F7D2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#8F7D2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F7D2A
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F7D2A#FFFFFF#000000##000000
##8F7D2A1.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A1F
Deuteranopia (green-blind)
#8E802F
Tritanopia (blue-blind)
#9A736C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8f7d2a;
/* rgb */ color: rgb(143, 125, 42);
/* oklch */ color: oklch(59.0% 0.103 96.8);
Tailwind
colors: {
  custom: {
    50: '#b3a269',
    500: '#8f7d2a',
    950: '#000000',
  },
}
SCSS
$custom: #8f7d2a;
$custom-light: #b3a269;
$custom-dark: #000000;
JSON
{
  "hex": "#8f7d2a",
  "rgb": {
    "r": 143,
    "g": 125,
    "b": 42
  },
  "hsl": {
    "h": 49.307,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.59036,
    "c": 0.10338,
    "h": 96.8
  },
  "luminance": 0.20674
}

Semantic roles & 50–950 ramp

primary
#8F7D2A
secondary
#5E6EB7
accent
#64DE4A
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8F7D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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