#7E831D#7E831D

#7E831D is a mid, moderate yellow. Relative luminance 0.208; OKLCH L 58.7% C 0.120 H 112.4°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#7E831D
RGBrgb(126, 131, 29)
HSLhsl(63, 64%, 31%)
HSVhsv(63, 78%, 51%)
CMYKcmyk(3.8%, 0%, 77.9%, 48.6%)
CIE-LABlab(52.68, -14.65, 50.44)
CIE-LCHlch(52.68, 52.52, 106.20°)
OKLaboklab(58.71% -0.0457 0.1106)
OKLCHoklch(58.71% 0.12 112.4)
XYZxyz(16.9428, 20.7573, 4.2762)
Luminance0.2076 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E831D #221D83
analogous
#83551D #7E831D #4B831D
triadic
#7E831D #1D7E83 #831D7E
tetradic
#7E831D #1D8355 #221D83 #831D4B
square
#7E831D #1D8355 #221D83 #831D4B
split-complementary
#7E831D #1D4B83 #551D83
monochromatic
#1E1F07 #4E5112 #7E831D #AEB528 #CFD645

Accessibility & contrast

On white

4.08
#7E831D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#7E831D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E831D
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E831D#FFFFFF#000000##000000
##7E831D1.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)
#8D7D04
Deuteranopia (green-blind)
#8E7F26
Tritanopia (blue-blind)
#877B70
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7e831d;
/* rgb */ color: rgb(126, 131, 29);
/* oklch */ color: oklch(58.7% 0.120 112.4);
Tailwind
colors: {
  custom: {
    50: '#a7a662',
    500: '#7e831d',
    950: '#000000',
  },
}
SCSS
$custom: #7e831d;
$custom-light: #a7a662;
$custom-dark: #000000;
JSON
{
  "hex": "#7e831d",
  "rgb": {
    "r": 126,
    "g": 131,
    "b": 29
  },
  "hsl": {
    "h": 62.941,
    "s": 63.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.58707,
    "c": 0.11965,
    "h": 112.4
  },
  "luminance": 0.20757
}

Semantic roles & 50–950 ramp

primary
#7E831D
secondary
#4B46B6
accent
#41E749
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7E831D

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

Preview Lab → · Contrast checker → · Palette generator →

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