#7E8A22#7E8A22

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

Color values

HEX#7E8A22
RGBrgb(126, 138, 34)
HSLhsl(67, 60%, 34%)
HSVhsv(67, 75%, 54%)
CMYKcmyk(8.7%, 0%, 75.4%, 45.9%)
CIE-LABlab(54.79, -18.10, 50.66)
CIE-LCHlch(54.79, 53.80, 109.66°)
OKLaboklab(60.41% -0.0548 0.112)
OKLCHoklch(60.41% 0.125 116.1)
XYZxyz(17.9819, 22.7283, 4.9528)
Luminance0.2273 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8A22 #2E228A
analogous
#8A6222 #7E8A22 #4A8A22
triadic
#7E8A22 #227E8A #8A227E
tetradic
#7E8A22 #228A62 #2E228A #8A224A
square
#7E8A22 #228A62 #2E228A #8A224A
split-complementary
#7E8A22 #224A8A #62228A
monochromatic
#24280A #515916 #7E8A22 #ABBB2E #C5D452

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #7e8a22;
/* rgb */ color: rgb(126, 138, 34);
/* oklch */ color: oklch(60.4% 0.125 116.1);
Tailwind
colors: {
  custom: {
    50: '#a6ac65',
    500: '#7e8a22',
    950: '#000000',
  },
}
SCSS
$custom: #7e8a22;
$custom-light: #a6ac65;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8a22",
  "rgb": {
    "r": 126,
    "g": 138,
    "b": 34
  },
  "hsl": {
    "h": 66.923,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.60407,
    "c": 0.12468,
    "h": 116.1
  },
  "luminance": 0.22728
}

Semantic roles & 50–950 ramp

primary
#7E8A22
secondary
#5C50B8
accent
#44E457
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8A22

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

Preview Lab → · Contrast checker → · Palette generator →

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