#7E7D22#7E7D22

#7E7D22 is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.3% C 0.110 H 108.8°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#7E7D22
RGBrgb(126, 125, 34)
HSLhsl(59, 58%, 31%)
HSVhsv(59, 73%, 49%)
CMYKcmyk(0%, 0.8%, 73%, 50.6%)
CIE-LABlab(50.94, -11.17, 46.95)
CIE-LCHlch(50.94, 48.26, 103.38°)
OKLaboklab(57.33% -0.0354 0.1042)
OKLCHoklch(57.33% 0.11 108.8)
XYZxyz(16.2271, 19.2188, 4.3679)
Luminance0.1922 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7D22 #22237E
analogous
#7E4F22 #7E7D22 #517E22
triadic
#7E7D22 #227E7D #7D227E
tetradic
#7E7D22 #227E4F #22237E #7E2251
square
#7E7D22 #227E4F #22237E #7E2251
split-complementary
#7E7D22 #22517E #4F227E
monochromatic
#1E1D08 #4E4D15 #7E7D22 #AEAD2F #CFCD4C

Accessibility & contrast

On white

4.34
#7E7D22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#7E7D22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7D22
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7D22#FFFFFF#000000##000000
##7E7D221.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#887812
Deuteranopia (green-blind)
#897B29
Tritanopia (blue-blind)
#87756B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7e7d22;
/* rgb */ color: rgb(126, 125, 34);
/* oklch */ color: oklch(57.3% 0.110 108.8);
Tailwind
colors: {
  custom: {
    50: '#a6a264',
    500: '#7e7d22',
    950: '#000000',
  },
}
SCSS
$custom: #7e7d22;
$custom-light: #a6a264;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7d22",
  "rgb": {
    "r": 126,
    "g": 125,
    "b": 34
  },
  "hsl": {
    "h": 59.348,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.57325,
    "c": 0.11006,
    "h": 108.8
  },
  "luminance": 0.19218
}

Semantic roles & 50–950 ramp

primary
#7E7D22
secondary
#4B4CB1
accent
#49E147
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100F06
muted
#7F7E7A

Preview Lab

Preview with #7E7D22

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

Preview Lab → · Contrast checker → · Palette generator →

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