#7E831C#7E831C

#7E831C is a mid, vivid 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#7E831C
RGBrgb(126, 131, 28)
HSLhsl(63, 65%, 31%)
HSVhsv(63, 79%, 51%)
CMYKcmyk(3.8%, 0%, 78.6%, 48.6%)
CIE-LABlab(52.68, -14.69, 50.77)
CIE-LCHlch(52.68, 52.85, 106.14°)
OKLaboklab(58.7% -0.0459 0.1111)
OKLCHoklch(58.7% 0.12 112.4)
XYZxyz(16.9306, 20.7525, 4.2121)
Luminance0.2075 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E831C #211C83
analogous
#83541C #7E831C #4A831C
triadic
#7E831C #1C7E83 #831C7E
tetradic
#7E831C #1C8354 #211C83 #831C4A
square
#7E831C #1C8354 #211C83 #831C4A
split-complementary
#7E831C #1C4A83 #541C83
monochromatic
#1D1E06 #4D5111 #7E831C #AEB527 #D0D743

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E831C#FFFFFF#000000##000000
##7E831C1.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)
#8D7D02
Deuteranopia (green-blind)
#8E7F25
Tritanopia (blue-blind)
#877B70
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7e831c;
/* rgb */ color: rgb(126, 131, 28);
/* oklch */ color: oklch(58.7% 0.120 112.4);
Tailwind
colors: {
  custom: {
    50: '#a7a662',
    500: '#7e831c',
    950: '#000000',
  },
}
SCSS
$custom: #7e831c;
$custom-light: #a7a662;
$custom-dark: #000000;
JSON
{
  "hex": "#7e831c",
  "rgb": {
    "r": 126,
    "g": 131,
    "b": 28
  },
  "hsl": {
    "h": 62.913,
    "s": 64.78,
    "l": 31.176
  },
  "oklch": {
    "l": 0.58701,
    "c": 0.12022,
    "h": 112.4
  },
  "luminance": 0.20752
}

Semantic roles & 50–950 ramp

primary
#7E831C
secondary
#4A45B6
accent
#40E848
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7E831C

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

Preview Lab → · Contrast checker → · Palette generator →

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