#8F7E1C#8F7E1C

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

Color values

HEX#8F7E1C
RGBrgb(143, 126, 28)
HSLhsl(51, 67%, 34%)
HSVhsv(51, 80%, 56%)
CMYKcmyk(0%, 11.9%, 80.4%, 43.9%)
CIE-LABlab(52.78, -4.12, 51.44)
CIE-LCHlch(52.78, 51.60, 94.58°)
OKLaboklab(59.16% -0.0172 0.1118)
OKLCHoklch(59.16% 0.113 98.7)
XYZxyz(18.9991, 20.8462, 4.1214)
Luminance0.2084 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F7E1C #1C2D8F
analogous
#8F441C #8F7E1C #668F1C
triadic
#8F7E1C #1C8F7E #7E1C8F
tetradic
#8F7E1C #1C8F44 #1C2D8F #8F1C66
square
#8F7E1C #1C8F44 #1C2D8F #8F1C66
split-complementary
#8F7E1C #1C668F #441C8F
monochromatic
#292408 #5C5112 #8F7E1C #C2AB26 #DCC64A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F7E1C#FFFFFF#000000##000000
##8F7E1C1.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)
#8B7B04
Deuteranopia (green-blind)
#908123
Tritanopia (blue-blind)
#9B746C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8f7e1c;
/* rgb */ color: rgb(143, 126, 28);
/* oklch */ color: oklch(59.2% 0.113 98.7);
Tailwind
colors: {
  custom: {
    50: '#b4a361',
    500: '#8f7e1c',
    950: '#000000',
  },
}
SCSS
$custom: #8f7e1c;
$custom-light: #b4a361;
$custom-dark: #000000;
JSON
{
  "hex": "#8f7e1c",
  "rgb": {
    "r": 143,
    "g": 126,
    "b": 28
  },
  "hsl": {
    "h": 51.13,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.59156,
    "c": 0.1131,
    "h": 98.7
  },
  "luminance": 0.20845
}

Semantic roles & 50–950 ramp

primary
#8F7E1C
secondary
#495ABE
accent
#57EA3E
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#120F05
muted
#817E7A

Preview Lab

Preview with #8F7E1C

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

Preview Lab → · Contrast checker → · Palette generator →

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