#8F7B2D#8F7B2D

#8F7B2D is a mid, moderate yellow. Relative luminance 0.202; OKLCH L 58.6% C 0.100 H 94.7°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#8F7B2D
RGBrgb(143, 123, 45)
HSLhsl(48, 52%, 37%)
HSVhsv(48, 69%, 56%)
CMYKcmyk(0%, 14%, 68.5%, 43.9%)
CIE-LABlab(52.06, -1.59, 43.93)
CIE-LCHlch(52.06, 43.95, 92.07°)
OKLaboklab(58.62% -0.0081 0.0992)
OKLCHoklch(58.62% 0.1 94.7)
XYZxyz(18.8852, 20.1960, 5.3856)
Luminance0.2019 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F7B2D #2D418F
analogous
#8F4A2D #8F7B2D #728F2D
triadic
#8F7B2D #2D8F7B #7B2D8F
tetradic
#8F7B2D #2D8F4A #2D418F #8F2D72
square
#8F7B2D #2D8F4A #2D418F #8F2D72
split-complementary
#8F7B2D #2D728F #4A2D8F
monochromatic
#322B10 #60531E #8F7B2D #BEA33C #CFBA67

Accessibility & contrast

On white

4.17
#8F7B2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#8F7B2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F7B2D
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F7B2D#FFFFFF#000000##000000
##8F7B2D1.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#887923
Deuteranopia (green-blind)
#8D7F31
Tritanopia (blue-blind)
#9A726B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8f7b2d;
/* rgb */ color: rgb(143, 123, 45);
/* oklch */ color: oklch(58.6% 0.100 94.7);
Tailwind
colors: {
  custom: {
    50: '#b3a06a',
    500: '#8f7b2d',
    950: '#000000',
  },
}
SCSS
$custom: #8f7b2d;
$custom-light: #b3a06a;
$custom-dark: #000000;
JSON
{
  "hex": "#8f7b2d",
  "rgb": {
    "r": 143,
    "g": 123,
    "b": 45
  },
  "hsl": {
    "h": 47.755,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.58621,
    "c": 0.09953,
    "h": 94.7
  },
  "luminance": 0.20195
}

Semantic roles & 50–950 ramp

primary
#8F7B2D
secondary
#6273B6
accent
#69DC4C
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E07
muted
#807E7A

Preview Lab

Preview with #8F7B2D

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

Preview Lab → · Contrast checker → · Palette generator →

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