#7E8D20#7E8D20

#7E8D20 is a mid, vivid yellow. Relative luminance 0.236; OKLCH L 61.1% C 0.129 H 117.4°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#7E8D20
RGBrgb(126, 141, 32)
HSLhsl(68, 63%, 34%)
HSVhsv(68, 77%, 55%)
CMYKcmyk(10.6%, 0%, 77.3%, 44.7%)
CIE-LABlab(55.67, -19.75, 52.19)
CIE-LCHlch(55.67, 55.81, 110.73°)
OKLaboklab(61.11% -0.0595 0.1149)
OKLCHoklch(61.11% 0.129 117.4)
XYZxyz(18.3902, 23.5899, 4.9507)
Luminance0.2359 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8D20 #2F208D
analogous
#8D6620 #7E8D20 #488D20
triadic
#7E8D20 #207E8D #8D207E
tetradic
#7E8D20 #208D66 #2F208D #8D2048
square
#7E8D20 #208D66 #2F208D #8D2048
split-complementary
#7E8D20 #20488D #66208D
monochromatic
#252909 #515B15 #7E8D20 #ABBF2B #C5D750

Accessibility & contrast

On white

3.67
#7E8D20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#7E8D20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8D20
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8D20#FFFFFF#000000##000000
##7E8D201.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#978505
Deuteranopia (green-blind)
#95862A
Tritanopia (blue-blind)
#868579
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7e8d20;
/* rgb */ color: rgb(126, 141, 32);
/* oklch */ color: oklch(61.1% 0.129 117.4);
Tailwind
colors: {
  custom: {
    50: '#a7ae65',
    500: '#7e8d20',
    950: '#000000',
  },
}
SCSS
$custom: #7e8d20;
$custom-light: #a7ae65;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8d20",
  "rgb": {
    "r": 126,
    "g": 141,
    "b": 32
  },
  "hsl": {
    "h": 68.257,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.61113,
    "c": 0.12939,
    "h": 117.4
  },
  "luminance": 0.2359
}

Semantic roles & 50–950 ramp

primary
#7E8D20
secondary
#5D4EBA
accent
#42E658
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8D20

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

Preview Lab → · Contrast checker → · Palette generator →

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