#8F7B22#8F7B22

#8F7B22 is a mid, moderate yellow. Relative luminance 0.201; OKLCH L 58.5% C 0.107 H 95.9°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#8F7B22
RGBrgb(143, 123, 34)
HSLhsl(49, 62%, 35%)
HSVhsv(49, 76%, 56%)
CMYKcmyk(0%, 14%, 76.2%, 43.9%)
CIE-LABlab(51.98, -2.19, 48.50)
CIE-LCHlch(51.98, 48.55, 92.58°)
OKLaboklab(58.53% -0.0111 0.1068)
OKLCHoklch(58.53% 0.107 95.9)
XYZxyz(18.7004, 20.1221, 4.4120)
Luminance0.2012 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F7B22 #22368F
analogous
#8F4522 #8F7B22 #6D8F22
triadic
#8F7B22 #228F7B #7B228F
tetradic
#8F7B22 #228F45 #22368F #8F226D
square
#8F7B22 #228F45 #22368F #8F226D
split-complementary
#8F7B22 #226D8F #45228F
monochromatic
#2C260A #5E5016 #8F7B22 #C0A62E #D7BF55

Accessibility & contrast

On white

4.18
#8F7B22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#8F7B22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F7B22
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F7B22#FFFFFF#000000##000000
##8F7B221.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#887812
Deuteranopia (green-blind)
#8D7F28
Tritanopia (blue-blind)
#9B716A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8f7b22;
/* rgb */ color: rgb(143, 123, 34);
/* oklch */ color: oklch(58.5% 0.107 95.9);
Tailwind
colors: {
  custom: {
    50: '#b3a064',
    500: '#8f7b22',
    950: '#000000',
  },
}
SCSS
$custom: #8f7b22;
$custom-light: #b3a064;
$custom-dark: #000000;
JSON
{
  "hex": "#8f7b22",
  "rgb": {
    "r": 143,
    "g": 123,
    "b": 34
  },
  "hsl": {
    "h": 48.991,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.58529,
    "c": 0.10736,
    "h": 95.9
  },
  "luminance": 0.20121
}

Semantic roles & 50–950 ramp

primary
#8F7B22
secondary
#5265BA
accent
#61E543
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #8F7B22

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

Preview Lab → · Contrast checker → · Palette generator →

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