#7E801C#7E801C

#7E801C is a mid, moderate yellow. Relative luminance 0.200; OKLCH L 58.0% C 0.117 H 110.7°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#7E801C
RGBrgb(126, 128, 28)
HSLhsl(61, 64%, 31%)
HSVhsv(61, 78%, 50%)
CMYKcmyk(1.6%, 0%, 78.1%, 49.8%)
CIE-LABlab(51.79, -13.09, 49.95)
CIE-LCHlch(51.79, 51.64, 104.68°)
OKLaboklab(57.99% -0.0414 0.1094)
OKLCHoklch(57.99% 0.117 110.7)
XYZxyz(16.5335, 19.9583, 4.0798)
Luminance0.1996 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E801C #1E1C80
analogous
#80501C #7E801C #4C801C
triadic
#7E801C #1C7E80 #801C7E
tetradic
#7E801C #1C8050 #1E1C80 #801C4C
square
#7E801C #1C8050 #1E1C80 #801C4C
split-complementary
#7E801C #1C4C80 #501C80
monochromatic
#1B1C06 #4D4E11 #7E801C #AFB227 #D2D541

Accessibility & contrast

On white

4.21
#7E801C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#7E801C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E801C
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E801C#FFFFFF#000000##000000
##7E801C1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A03
Deuteranopia (green-blind)
#8B7D24
Tritanopia (blue-blind)
#87786D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7e801c;
/* rgb */ color: rgb(126, 128, 28);
/* oklch */ color: oklch(58.0% 0.117 110.7);
Tailwind
colors: {
  custom: {
    50: '#a7a461',
    500: '#7e801c',
    950: '#000000',
  },
}
SCSS
$custom: #7e801c;
$custom-light: #a7a461;
$custom-dark: #000000;
JSON
{
  "hex": "#7e801c",
  "rgb": {
    "r": 126,
    "g": 128,
    "b": 28
  },
  "hsl": {
    "h": 61.2,
    "s": 64.103,
    "l": 30.588
  },
  "oklch": {
    "l": 0.57991,
    "c": 0.11696,
    "h": 110.7
  },
  "luminance": 0.19958
}

Semantic roles & 50–950 ramp

primary
#7E801C
secondary
#4744B3
accent
#41E744
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7E801C

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

Preview Lab → · Contrast checker → · Palette generator →

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