#7F831B#7F831B

#7F831B is a mid, vivid yellow. Relative luminance 0.208; OKLCH L 58.8% C 0.120 H 111.9°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#7F831B
RGBrgb(127, 131, 27)
HSLhsl(62, 66%, 31%)
HSVhsv(62, 79%, 51%)
CMYKcmyk(3.1%, 0%, 79.4%, 48.6%)
CIE-LABlab(52.76, -14.28, 51.20)
CIE-LCHlch(52.76, 53.16, 105.59°)
OKLaboklab(58.78% -0.0449 0.1118)
OKLCHoklch(58.78% 0.12 111.9)
XYZxyz(17.0671, 20.8242, 4.1571)
Luminance0.2082 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F831B #1F1B83
analogous
#83531B #7F831B #4B831B
triadic
#7F831B #1B7F83 #831B7F
tetradic
#7F831B #1B8353 #1F1B83 #831B4B
square
#7F831B #1B8353 #1F1B83 #831B4B
split-complementary
#7F831B #1B4B83 #531B83
monochromatic
#1D1E06 #4E5011 #7F831B #B0B625 #D2D841

Accessibility & contrast

On white

4.07
#7F831B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#7F831B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F831B
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F831B#FFFFFF#000000##000000
##7F831B1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#8E7F24
Tritanopia (blue-blind)
#887A70
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7f831b;
/* rgb */ color: rgb(127, 131, 27);
/* oklch */ color: oklch(58.8% 0.120 111.9);
Tailwind
colors: {
  custom: {
    50: '#a7a661',
    500: '#7f831b',
    950: '#000000',
  },
}
SCSS
$custom: #7f831b;
$custom-light: #a7a661;
$custom-dark: #000000;
JSON
{
  "hex": "#7f831b",
  "rgb": {
    "r": 127,
    "g": 131,
    "b": 27
  },
  "hsl": {
    "h": 62.308,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.58784,
    "c": 0.12047,
    "h": 111.9
  },
  "luminance": 0.20824
}

Semantic roles & 50–950 ramp

primary
#7F831B
secondary
#4843B6
accent
#3FE946
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7F831B

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

Preview Lab → · Contrast checker → · Palette generator →

#7F831B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva