#7E8B20#7E8B20

#7E8B20 is a mid, vivid yellow. Relative luminance 0.230; OKLCH L 60.6% C 0.127 H 116.5°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#7E8B20
RGBrgb(126, 139, 32)
HSLhsl(67, 63%, 34%)
HSVhsv(67, 77%, 55%)
CMYKcmyk(9.4%, 0%, 77%, 45.5%)
CIE-LABlab(55.08, -18.72, 51.64)
CIE-LCHlch(55.08, 54.92, 109.93°)
OKLaboklab(60.63% -0.0567 0.1137)
OKLCHoklch(60.63% 0.127 116.5)
XYZxyz(18.0980, 23.0054, 4.8533)
Luminance0.2301 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8B20 #2D208B
analogous
#8B6220 #7E8B20 #488B20
triadic
#7E8B20 #207E8B #8B207E
tetradic
#7E8B20 #208B62 #2D208B #8B2048
square
#7E8B20 #208B62 #2D208B #8B2048
split-complementary
#7E8B20 #20488B #62208B
monochromatic
#242809 #515915 #7E8B20 #ABBD2B #C6D64F

Accessibility & contrast

On white

3.75
#7E8B20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#7E8B20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8B20
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8B20#FFFFFF#000000##000000
##7E8B201.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#958306
Deuteranopia (green-blind)
#948529
Tritanopia (blue-blind)
#868377
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7e8b20;
/* rgb */ color: rgb(126, 139, 32);
/* oklch */ color: oklch(60.6% 0.127 116.5);
Tailwind
colors: {
  custom: {
    50: '#a7ac65',
    500: '#7e8b20',
    950: '#000000',
  },
}
SCSS
$custom: #7e8b20;
$custom-light: #a7ac65;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8b20",
  "rgb": {
    "r": 126,
    "g": 139,
    "b": 32
  },
  "hsl": {
    "h": 67.29,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.60634,
    "c": 0.12704,
    "h": 116.5
  },
  "luminance": 0.23005
}

Semantic roles & 50–950 ramp

primary
#7E8B20
secondary
#5A4DBA
accent
#42E656
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8B20

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

Preview Lab → · Contrast checker → · Palette generator →

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