#8F7D21#8F7D21

#8F7D21 is a mid, moderate yellow. Relative luminance 0.206; OKLCH L 59.0% C 0.109 H 97.6°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#8F7D21
RGBrgb(143, 125, 33)
HSLhsl(50, 63%, 35%)
HSVhsv(50, 77%, 56%)
CMYKcmyk(0%, 12.6%, 76.9%, 43.9%)
CIE-LABlab(52.53, -3.35, 49.41)
CIE-LCHlch(52.53, 49.53, 93.88°)
OKLaboklab(58.97% -0.0145 0.1085)
OKLCHoklch(58.97% 0.109 97.6)
XYZxyz(18.9368, 20.6177, 4.4207)
Luminance0.2062 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F7D21 #21338F
analogous
#8F4621 #8F7D21 #6A8F21
triadic
#8F7D21 #218F7D #7D218F
tetradic
#8F7D21 #218F46 #21338F #8F216A
square
#8F7D21 #218F46 #21338F #8F216A
split-complementary
#8F7D21 #216A8F #46218F
monochromatic
#2C260A #5D5216 #8F7D21 #C1A82C #D7C253

Accessibility & contrast

On white

4.10
#8F7D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#8F7D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F7D21
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F7D21#FFFFFF#000000##000000
##8F7D211.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A10
Deuteranopia (green-blind)
#8F8027
Tritanopia (blue-blind)
#9B736B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8f7d21;
/* rgb */ color: rgb(143, 125, 33);
/* oklch */ color: oklch(59.0% 0.109 97.6);
Tailwind
colors: {
  custom: {
    50: '#b3a264',
    500: '#8f7d21',
    950: '#000000',
  },
}
SCSS
$custom: #8f7d21;
$custom-light: #b3a264;
$custom-dark: #000000;
JSON
{
  "hex": "#8f7d21",
  "rgb": {
    "r": 143,
    "g": 125,
    "b": 33
  },
  "hsl": {
    "h": 50.182,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.58965,
    "c": 0.10949,
    "h": 97.6
  },
  "luminance": 0.20617
}

Semantic roles & 50–950 ramp

primary
#8F7D21
secondary
#5162BB
accent
#5DE642
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8F7D21

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

Preview Lab → · Contrast checker → · Palette generator →

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