#807F31#807F31

#807F31 is a mid, moderate yellow. Relative luminance 0.200; OKLCH L 58.1% C 0.100 H 108.5°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#807F31
RGBrgb(128, 127, 49)
HSLhsl(59, 45%, 35%)
HSVhsv(59, 62%, 50%)
CMYKcmyk(0%, 0.8%, 61.7%, 49.8%)
CIE-LABlab(51.83, -10.38, 41.41)
CIE-LCHlch(51.83, 42.69, 104.08°)
OKLaboklab(58.11% -0.0317 0.0949)
OKLCHoklch(58.11% 0.1 108.5)
XYZxyz(17.0464, 19.9902, 5.8657)
Luminance0.1999 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#807F31 #313280
analogous
#805831 #807F31 #598031
triadic
#807F31 #31807F #7F3180
tetradic
#807F31 #318058 #313280 #803159
square
#807F31 #318058 #313280 #803159
split-complementary
#807F31 #315980 #583180
monochromatic
#27270F #545320 #807F31 #ACAB42 #C5C467

Accessibility & contrast

On white

4.20
#807F31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#807F31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #807F31
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##807F31#FFFFFF#000000##000000
##807F311.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#897A28
Deuteranopia (green-blind)
#8A7D36
Tritanopia (blue-blind)
#89776E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #807f31;
/* rgb */ color: rgb(128, 127, 49);
/* oklch */ color: oklch(58.1% 0.100 108.5);
Tailwind
colors: {
  custom: {
    50: '#a7a36d',
    500: '#807f31',
    950: '#000000',
  },
}
SCSS
$custom: #807f31;
$custom-light: #a7a36d;
$custom-dark: #000000;
JSON
{
  "hex": "#807f31",
  "rgb": {
    "r": 128,
    "g": 127,
    "b": 49
  },
  "hsl": {
    "h": 59.241,
    "s": 44.633,
    "l": 34.706
  },
  "oklch": {
    "l": 0.58112,
    "c": 0.10008,
    "h": 108.5
  },
  "luminance": 0.1999
}

Semantic roles & 50–950 ramp

primary
#807F31
secondary
#6162AC
accent
#55D453
background
#FAFAF6
surface
#F4F3EC
border
#CECDC7
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #807F31

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

Preview Lab → · Contrast checker → · Palette generator →

#807F31 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva