#8A7F27#8A7F27

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

Color values

HEX#8A7F27
RGBrgb(138, 127, 39)
HSLhsl(53, 56%, 35%)
HSVhsv(53, 72%, 54%)
CMYKcmyk(0%, 8%, 71.7%, 45.9%)
CIE-LABlab(52.65, -6.47, 46.99)
CIE-LCHlch(52.65, 47.43, 97.84°)
OKLaboklab(58.96% -0.0224 0.1048)
OKLCHoklch(58.96% 0.107 102.1)
XYZxyz(18.4376, 20.7293, 4.9490)
Luminance0.2073 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7F27 #27328A
analogous
#8A4D27 #8A7F27 #648A27
triadic
#8A7F27 #278A7F #7F278A
tetradic
#8A7F27 #278A4D #27328A #8A2764
square
#8A7F27 #278A4D #27328A #8A2764
split-complementary
#8A7F27 #27648A #4D278A
monochromatic
#2B270C #5A531A #8A7F27 #BAAB34 #D1C45B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A7F27#FFFFFF#000000##000000
##8A7F271.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)
#8B7B1A
Deuteranopia (green-blind)
#8E802D
Tritanopia (blue-blind)
#95766D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a7f27;
/* rgb */ color: rgb(138, 127, 39);
/* oklch */ color: oklch(59.0% 0.107 102.1);
Tailwind
colors: {
  custom: {
    50: '#afa367',
    500: '#8a7f27',
    950: '#000000',
  },
}
SCSS
$custom: #8a7f27;
$custom-light: #afa367;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7f27",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 39
  },
  "hsl": {
    "h": 53.333,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.58962,
    "c": 0.10714,
    "h": 102.1
  },
  "luminance": 0.20729
}

Semantic roles & 50–950 ramp

primary
#8A7F27
secondary
#5762B6
accent
#59DF49
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A7F27

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

Preview Lab → · Contrast checker → · Palette generator →

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