#7F831A#7F831A

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

Color values

HEX#7F831A
RGBrgb(127, 131, 26)
HSLhsl(62, 67%, 31%)
HSVhsv(62, 80%, 51%)
CMYKcmyk(3.1%, 0%, 80.2%, 48.6%)
CIE-LABlab(52.75, -14.32, 51.52)
CIE-LCHlch(52.75, 53.47, 105.54°)
OKLaboklab(58.78% -0.0451 0.1123)
OKLCHoklch(58.78% 0.121 111.9)
XYZxyz(17.0557, 20.8196, 4.0972)
Luminance0.2082 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F831A #1E1A83
analogous
#83521A #7F831A #4A831A
triadic
#7F831A #1A7F83 #831A7F
tetradic
#7F831A #1A8352 #1E1A83 #831A4A
square
#7F831A #1A8352 #1E1A83 #831A4A
split-complementary
#7F831A #1A4A83 #521A83
monochromatic
#1C1D06 #4D5010 #7F831A #B1B624 #D3D93F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F831A#FFFFFF#000000##000000
##7F831A1.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: #7f831a;
/* rgb */ color: rgb(127, 131, 26);
/* oklch */ color: oklch(58.8% 0.121 111.9);
Tailwind
colors: {
  custom: {
    50: '#a7a661',
    500: '#7f831a',
    950: '#000000',
  },
}
SCSS
$custom: #7f831a;
$custom-light: #a7a661;
$custom-dark: #000000;
JSON
{
  "hex": "#7f831a",
  "rgb": {
    "r": 127,
    "g": 131,
    "b": 26
  },
  "hsl": {
    "h": 62.286,
    "s": 66.879,
    "l": 30.784
  },
  "oklch": {
    "l": 0.58778,
    "c": 0.12099,
    "h": 111.9
  },
  "luminance": 0.20819
}

Semantic roles & 50–950 ramp

primary
#7F831A
secondary
#4742B7
accent
#3EEA45
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7F831A

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

Preview Lab → · Contrast checker → · Palette generator →

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