#7E831A#7E831A

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

Color values

HEX#7E831A
RGBrgb(126, 131, 26)
HSLhsl(63, 67%, 31%)
HSVhsv(63, 80%, 51%)
CMYKcmyk(3.8%, 0%, 80.2%, 48.6%)
CIE-LABlab(52.67, -14.78, 51.41)
CIE-LCHlch(52.67, 53.49, 106.04°)
OKLaboklab(58.69% -0.0463 0.1121)
OKLCHoklch(58.69% 0.121 112.4)
XYZxyz(16.9075, 20.7432, 4.0903)
Luminance0.2074 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E831A #1F1A83
analogous
#83531A #7E831A #49831A
triadic
#7E831A #1A7E83 #831A7E
tetradic
#7E831A #1A8353 #1F1A83 #831A49
square
#7E831A #1A8353 #1F1A83 #831A49
split-complementary
#7E831A #1A4983 #531A83
monochromatic
#1C1D06 #4D5010 #7E831A #AFB624 #D1D93F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E831A#FFFFFF#000000##000000
##7E831A1.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)
#8E7D00
Deuteranopia (green-blind)
#8E7F24
Tritanopia (blue-blind)
#877B70
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7e831a;
/* rgb */ color: rgb(126, 131, 26);
/* oklch */ color: oklch(58.7% 0.121 112.4);
Tailwind
colors: {
  custom: {
    50: '#a7a661',
    500: '#7e831a',
    950: '#000000',
  },
}
SCSS
$custom: #7e831a;
$custom-light: #a7a661;
$custom-dark: #000000;
JSON
{
  "hex": "#7e831a",
  "rgb": {
    "r": 126,
    "g": 131,
    "b": 26
  },
  "hsl": {
    "h": 62.857,
    "s": 66.879,
    "l": 30.784
  },
  "oklch": {
    "l": 0.5869,
    "c": 0.12127,
    "h": 112.4
  },
  "luminance": 0.20743
}

Semantic roles & 50–950 ramp

primary
#7E831A
secondary
#4842B7
accent
#3EEA46
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7E831A

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

Preview Lab → · Contrast checker → · Palette generator →

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