#8A7F1E#8A7F1E

#8A7F1E is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 58.9% C 0.113 H 102.6°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#8A7F1E
RGBrgb(138, 127, 30)
HSLhsl(54, 64%, 33%)
HSVhsv(54, 78%, 54%)
CMYKcmyk(0%, 8%, 78.3%, 45.9%)
CIE-LABlab(52.59, -6.91, 50.40)
CIE-LCHlch(52.59, 50.87, 97.81°)
OKLaboklab(58.9% -0.0246 0.1102)
OKLCHoklch(58.9% 0.113 102.6)
XYZxyz(18.3058, 20.6766, 4.2548)
Luminance0.2068 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7F1E #1E298A
analogous
#8A491E #8A7F1E #5F8A1E
triadic
#8A7F1E #1E8A7F #7F1E8A
tetradic
#8A7F1E #1E8A49 #1E298A #8A1E5F
square
#8A7F1E #1E8A49 #1E298A #8A1E5F
split-complementary
#8A7F1E #1E5F8A #491E8A
monochromatic
#252208 #585113 #8A7F1E #BCAD29 #D8C94B

Accessibility & contrast

On white

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

On black

5.14
#8A7F1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7F1E
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7F1E#FFFFFF#000000##000000
##8A7F1E1.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B08
Deuteranopia (green-blind)
#8F8025
Tritanopia (blue-blind)
#95766D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a7f1e;
/* rgb */ color: rgb(138, 127, 30);
/* oklch */ color: oklch(58.9% 0.113 102.6);
Tailwind
colors: {
  custom: {
    50: '#b0a362',
    500: '#8a7f1e',
    950: '#000000',
  },
}
SCSS
$custom: #8a7f1e;
$custom-light: #b0a362;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7f1e",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 30
  },
  "hsl": {
    "h": 53.889,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.58897,
    "c": 0.11293,
    "h": 102.6
  },
  "luminance": 0.20676
}

Semantic roles & 50–950 ramp

primary
#8A7F1E
secondary
#4A55BA
accent
#52E741
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A7F1E

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

Preview Lab → · Contrast checker → · Palette generator →

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