#7E7E22#7E7E22

#7E7E22 is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.6% C 0.111 H 109.4°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#7E7E22
RGBrgb(126, 126, 34)
HSLhsl(60, 58%, 31%)
HSVhsv(60, 73%, 49%)
CMYKcmyk(0%, 0%, 73%, 50.6%)
CIE-LABlab(51.24, -11.71, 47.24)
CIE-LCHlch(51.24, 48.67, 103.92°)
OKLaboklab(57.56% -0.037 0.1048)
OKLCHoklch(57.56% 0.111 109.4)
XYZxyz(16.3544, 19.4733, 4.4103)
Luminance0.1947 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7E22 #22227E
analogous
#7E5022 #7E7E22 #507E22
triadic
#7E7E22 #227E7E #7E227E
tetradic
#7E7E22 #227E50 #22227E #7E2250
square
#7E7E22 #227E50 #22227E #7E2250
split-complementary
#7E7E22 #22507E #50227E
monochromatic
#1E1E08 #4E4E15 #7E7E22 #AEAE2F #CFCF4C

Accessibility & contrast

On white

4.29
#7E7E22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#7E7E22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7E22
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7E22#FFFFFF#000000##000000
##7E7E221.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#887912
Deuteranopia (green-blind)
#8A7B29
Tritanopia (blue-blind)
#87766C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7e7e22;
/* rgb */ color: rgb(126, 126, 34);
/* oklch */ color: oklch(57.6% 0.111 109.4);
Tailwind
colors: {
  custom: {
    50: '#a6a364',
    500: '#7e7e22',
    950: '#000000',
  },
}
SCSS
$custom: #7e7e22;
$custom-light: #a6a364;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7e22",
  "rgb": {
    "r": 126,
    "g": 126,
    "b": 34
  },
  "hsl": {
    "h": 60,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.5756,
    "c": 0.11112,
    "h": 109.4
  },
  "luminance": 0.19473
}

Semantic roles & 50–950 ramp

primary
#7E7E22
secondary
#4B4BB1
accent
#47E147
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E7E22

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

Preview Lab → · Contrast checker → · Palette generator →

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