#7E8A23#7E8A23

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

Color values

HEX#7E8A23
RGBrgb(126, 138, 35)
HSLhsl(67, 60%, 34%)
HSVhsv(67, 75%, 54%)
CMYKcmyk(8.7%, 0%, 74.6%, 45.9%)
CIE-LABlab(54.80, -18.05, 50.30)
CIE-LCHlch(54.80, 53.44, 109.74°)
OKLaboklab(60.41% -0.0545 0.1114)
OKLCHoklch(60.41% 0.124 116.1)
XYZxyz(17.9965, 22.7342, 5.0299)
Luminance0.2273 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8A23 #2F238A
analogous
#8A6323 #7E8A23 #4B8A23
triadic
#7E8A23 #237E8A #8A237E
tetradic
#7E8A23 #238A63 #2F238A #8A234B
square
#7E8A23 #238A63 #2F238A #8A234B
split-complementary
#7E8A23 #234B8A #63238A
monochromatic
#25280A #515917 #7E8A23 #ABBB2F #C5D454

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8A23#FFFFFF#000000##000000
##7E8A231.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)
#94830F
Deuteranopia (green-blind)
#93842C
Tritanopia (blue-blind)
#868276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7e8a23;
/* rgb */ color: rgb(126, 138, 35);
/* oklch */ color: oklch(60.4% 0.124 116.1);
Tailwind
colors: {
  custom: {
    50: '#a6ac66',
    500: '#7e8a23',
    950: '#000000',
  },
}
SCSS
$custom: #7e8a23;
$custom-light: #a6ac66;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8a23",
  "rgb": {
    "r": 126,
    "g": 138,
    "b": 35
  },
  "hsl": {
    "h": 66.99,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.60414,
    "c": 0.12407,
    "h": 116.1
  },
  "luminance": 0.22734
}

Semantic roles & 50–950 ramp

primary
#7E8A23
secondary
#5D51B7
accent
#45E357
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8A23

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

Preview Lab → · Contrast checker → · Palette generator →

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