#7E8A24#7E8A24

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

Color values

HEX#7E8A24
RGBrgb(126, 138, 36)
HSLhsl(67, 59%, 34%)
HSVhsv(67, 74%, 54%)
CMYKcmyk(8.7%, 0%, 73.9%, 45.9%)
CIE-LABlab(54.80, -17.99, 49.94)
CIE-LCHlch(54.80, 53.08, 109.82°)
OKLaboklab(60.42% -0.0543 0.1109)
OKLCHoklch(60.42% 0.123 116.1)
XYZxyz(18.0116, 22.7402, 5.1092)
Luminance0.2274 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8A24 #30248A
analogous
#8A6324 #7E8A24 #4B8A24
triadic
#7E8A24 #247E8A #8A247E
tetradic
#7E8A24 #248A63 #30248A #8A244B
square
#7E8A24 #248A63 #30248A #8A244B
split-complementary
#7E8A24 #244B8A #63248A
monochromatic
#25290B #525917 #7E8A24 #AABB31 #C4D356

Accessibility & contrast

On white

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

On black

5.55
#7E8A24 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8A24
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8A24#FFFFFF#000000##000000
##7E8A241.003.795.555.55
#FFFFFF3.791.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e8a24;
/* rgb */ color: rgb(126, 138, 36);
/* oklch */ color: oklch(60.4% 0.123 116.1);
Tailwind
colors: {
  custom: {
    50: '#a6ac66',
    500: '#7e8a24',
    950: '#000000',
  },
}
SCSS
$custom: #7e8a24;
$custom-light: #a6ac66;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8a24",
  "rgb": {
    "r": 126,
    "g": 138,
    "b": 36
  },
  "hsl": {
    "h": 67.059,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.60421,
    "c": 0.12343,
    "h": 116.1
  },
  "luminance": 0.2274
}

Semantic roles & 50–950 ramp

primary
#7E8A24
secondary
#5F53B7
accent
#46E258
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8A24

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

Preview Lab → · Contrast checker → · Palette generator →

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