#7E8A21#7E8A21

#7E8A21 is a mid, vivid yellow. Relative luminance 0.227; OKLCH L 60.4% C 0.125 H 116.0°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#7E8A21
RGBrgb(126, 138, 33)
HSLhsl(67, 61%, 34%)
HSVhsv(67, 76%, 54%)
CMYKcmyk(8.7%, 0%, 76.1%, 45.9%)
CIE-LABlab(54.79, -18.15, 51.01)
CIE-LCHlch(54.79, 54.14, 109.59°)
OKLaboklab(60.4% -0.055 0.1126)
OKLCHoklch(60.4% 0.125 116)
XYZxyz(17.9677, 22.7227, 4.8779)
Luminance0.2272 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8A21 #2D218A
analogous
#8A6121 #7E8A21 #498A21
triadic
#7E8A21 #217E8A #8A217E
tetradic
#7E8A21 #218A61 #2D218A #8A2149
square
#7E8A21 #218A61 #2D218A #8A2149
split-complementary
#7E8A21 #21498A #61218A
monochromatic
#242709 #515915 #7E8A21 #ABBB2D #C6D550

Accessibility & contrast

On white

3.79
#7E8A21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#7E8A21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8A21
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8A21#FFFFFF#000000##000000
##7E8A211.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#94830A
Deuteranopia (green-blind)
#93842A
Tritanopia (blue-blind)
#868276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7e8a21;
/* rgb */ color: rgb(126, 138, 33);
/* oklch */ color: oklch(60.4% 0.125 116.0);
Tailwind
colors: {
  custom: {
    50: '#a6ac65',
    500: '#7e8a21',
    950: '#000000',
  },
}
SCSS
$custom: #7e8a21;
$custom-light: #a6ac65;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8a21",
  "rgb": {
    "r": 126,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 66.857,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.60401,
    "c": 0.12529,
    "h": 116
  },
  "luminance": 0.22722
}

Semantic roles & 50–950 ramp

primary
#7E8A21
secondary
#5A4EB9
accent
#43E556
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8A21

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

Preview Lab → · Contrast checker → · Palette generator →

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