#8A8727#8A8727

#8A8727 is a mid, moderate yellow. Relative luminance 0.229; OKLCH L 60.8% C 0.115 H 107.6°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#8A8727
RGBrgb(138, 135, 39)
HSLhsl(58, 56%, 35%)
HSVhsv(58, 72%, 54%)
CMYKcmyk(0%, 2.2%, 71.7%, 45.9%)
CIE-LABlab(54.95, -10.85, 49.26)
CIE-LCHlch(54.95, 50.44, 102.42°)
OKLaboklab(60.79% -0.0347 0.1096)
OKLCHoklch(60.79% 0.115 107.6)
XYZxyz(19.5121, 22.8783, 5.3072)
Luminance0.2288 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8727 #272A8A
analogous
#8A5627 #8A8727 #5B8A27
triadic
#8A8727 #278A87 #87278A
tetradic
#8A8727 #278A56 #272A8A #8A275B
square
#8A8727 #278A56 #272A8A #8A275B
split-complementary
#8A8727 #275B8A #56278A
monochromatic
#2B2A0C #5A581A #8A8727 #BAB634 #D1CD5B

Accessibility & contrast

On white

3.77
#8A8727 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#8A8727 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8727
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8727#FFFFFF#000000##000000
##8A87271.003.775.585.58
#FFFFFF3.771.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#928217
Deuteranopia (green-blind)
#94852E
Tritanopia (blue-blind)
#947E74
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a8727;
/* rgb */ color: rgb(138, 135, 39);
/* oklch */ color: oklch(60.8% 0.115 107.6);
Tailwind
colors: {
  custom: {
    50: '#afa968',
    500: '#8a8727',
    950: '#000000',
  },
}
SCSS
$custom: #8a8727;
$custom-light: #afa968;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8727",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 39
  },
  "hsl": {
    "h": 58.182,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.60788,
    "c": 0.11495,
    "h": 107.6
  },
  "luminance": 0.22878
}

Semantic roles & 50–950 ramp

primary
#8A8727
secondary
#575AB6
accent
#4DDF49
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8727

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

Preview Lab → · Contrast checker → · Palette generator →

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