#7E8921#7E8921

#7E8921 is a mid, vivid yellow. Relative luminance 0.224; OKLCH L 60.2% C 0.124 H 115.6°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#7E8921
RGBrgb(126, 137, 33)
HSLhsl(66, 61%, 33%)
HSVhsv(66, 76%, 54%)
CMYKcmyk(8%, 0%, 75.9%, 46.3%)
CIE-LABlab(54.49, -17.63, 50.73)
CIE-LCHlch(54.49, 53.71, 109.16°)
OKLaboklab(60.16% -0.0535 0.112)
OKLCHoklch(60.16% 0.124 115.6)
XYZxyz(17.8248, 22.4370, 4.8303)
Luminance0.2244 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8921 #2C2189
analogous
#896021 #7E8921 #4A8921
triadic
#7E8921 #217E89 #89217E
tetradic
#7E8921 #218960 #2C2189 #89214A
square
#7E8921 #218960 #2C2189 #89214A
split-complementary
#7E8921 #214A89 #602189
monochromatic
#232609 #515815 #7E8921 #ABBA2D #C7D550

Accessibility & contrast

On white

3.83
#7E8921 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#7E8921 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8921
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8921#FFFFFF#000000##000000
##7E89211.003.835.495.49
#FFFFFF3.831.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#93820A
Deuteranopia (green-blind)
#92832A
Tritanopia (blue-blind)
#868175
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7e8921;
/* rgb */ color: rgb(126, 137, 33);
/* oklch */ color: oklch(60.2% 0.124 115.6);
Tailwind
colors: {
  custom: {
    50: '#a6ab65',
    500: '#7e8921',
    950: '#000000',
  },
}
SCSS
$custom: #7e8921;
$custom-light: #a6ab65;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8921",
  "rgb": {
    "r": 126,
    "g": 137,
    "b": 33
  },
  "hsl": {
    "h": 66.346,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.60161,
    "c": 0.12412,
    "h": 115.6
  },
  "luminance": 0.22437
}

Semantic roles & 50–950 ramp

primary
#7E8921
secondary
#594EB8
accent
#44E455
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8921

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

Preview Lab → · Contrast checker → · Palette generator →

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