#7E802B#7E802B

#7E802B is a mid, moderate yellow. Relative luminance 0.200; OKLCH L 58.1% C 0.107 H 110.6°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#7E802B
RGBrgb(126, 128, 43)
HSLhsl(61, 50%, 34%)
HSVhsv(61, 66%, 50%)
CMYKcmyk(1.6%, 0%, 66.4%, 49.8%)
CIE-LABlab(51.89, -12.26, 44.16)
CIE-LCHlch(51.89, 45.83, 105.51°)
OKLaboklab(58.11% -0.0375 0.0999)
OKLCHoklch(58.11% 0.107 110.6)
XYZxyz(16.7599, 20.0488, 5.2720)
Luminance0.2005 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E802B #2D2B80
analogous
#80572B #7E802B #53802B
triadic
#7E802B #2B7E80 #802B7E
tetradic
#7E802B #2B8057 #2D2B80 #802B53
square
#7E802B #2B8057 #2D2B80 #802B53
split-complementary
#7E802B #2B5380 #572B80
monochromatic
#24240C #51521C #7E802B #ABAE3A #C6C95D

Accessibility & contrast

On white

4.19
#7E802B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#7E802B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E802B
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E802B#FFFFFF#000000##000000
##7E802B1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A20
Deuteranopia (green-blind)
#8B7D31
Tritanopia (blue-blind)
#87786F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7e802b;
/* rgb */ color: rgb(126, 128, 43);
/* oklch */ color: oklch(58.1% 0.107 110.6);
Tailwind
colors: {
  custom: {
    50: '#a6a469',
    500: '#7e802b',
    950: '#000000',
  },
}
SCSS
$custom: #7e802b;
$custom-light: #a6a469;
$custom-dark: #000000;
JSON
{
  "hex": "#7e802b",
  "rgb": {
    "r": 126,
    "g": 128,
    "b": 43
  },
  "hsl": {
    "h": 61.412,
    "s": 49.708,
    "l": 33.529
  },
  "oklch": {
    "l": 0.58105,
    "c": 0.1067,
    "h": 110.6
  },
  "luminance": 0.20048
}

Semantic roles & 50–950 ramp

primary
#7E802B
secondary
#5A58AE
accent
#4FD952
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E802B

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

Preview Lab → · Contrast checker → · Palette generator →

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