#8A7F28#8A7F28

#8A7F28 is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 59.0% C 0.106 H 102.0°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#8A7F28
RGBrgb(138, 127, 40)
HSLhsl(53, 55%, 35%)
HSVhsv(53, 71%, 54%)
CMYKcmyk(0%, 8%, 71%, 45.9%)
CIE-LABlab(52.66, -6.42, 46.58)
CIE-LCHlch(52.66, 47.02, 97.84°)
OKLaboklab(58.97% -0.0221 0.1041)
OKLCHoklch(58.97% 0.106 102)
XYZxyz(18.4544, 20.7360, 5.0374)
Luminance0.2074 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7F28 #28338A
analogous
#8A4E28 #8A7F28 #648A28
triadic
#8A7F28 #288A7F #7F288A
tetradic
#8A7F28 #288A4E #28338A #8A2864
square
#8A7F28 #288A4E #28338A #8A2864
split-complementary
#8A7F28 #28648A #4E288A
monochromatic
#2B280C #5B531A #8A7F28 #B9AB36 #D0C35D

Accessibility & contrast

On white

4.08
#8A7F28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#8A7F28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7F28
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7F28#FFFFFF#000000##000000
##8A7F281.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B1B
Deuteranopia (green-blind)
#8E802D
Tritanopia (blue-blind)
#95766D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a7f28;
/* rgb */ color: rgb(138, 127, 40);
/* oklch */ color: oklch(59.0% 0.106 102.0);
Tailwind
colors: {
  custom: {
    50: '#afa368',
    500: '#8a7f28',
    950: '#000000',
  },
}
SCSS
$custom: #8a7f28;
$custom-light: #afa368;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7f28",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 40
  },
  "hsl": {
    "h": 53.265,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.5897,
    "c": 0.10642,
    "h": 102
  },
  "luminance": 0.20735
}

Semantic roles & 50–950 ramp

primary
#8A7F28
secondary
#5963B5
accent
#5ADE49
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A7F28

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

Preview Lab → · Contrast checker → · Palette generator →

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