#7E8722#7E8722

#7E8722 is a mid, vivid yellow. Relative luminance 0.219; OKLCH L 59.7% C 0.121 H 114.6°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#7E8722
RGBrgb(126, 135, 34)
HSLhsl(65, 60%, 33%)
HSVhsv(65, 75%, 53%)
CMYKcmyk(6.7%, 0%, 74.8%, 47.1%)
CIE-LABlab(53.90, -16.53, 49.81)
CIE-LCHlch(53.90, 52.48, 108.36°)
OKLaboklab(59.69% -0.0504 0.1102)
OKLCHoklch(59.69% 0.121 114.6)
XYZxyz(17.5574, 21.8794, 4.8113)
Luminance0.2188 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8722 #2B2287
analogous
#875E22 #7E8722 #4B8722
triadic
#7E8722 #227E87 #87227E
tetradic
#7E8722 #22875E #2B2287 #87224B
square
#7E8722 #22875E #2B2287 #87224B
split-complementary
#7E8722 #224B87 #5E2287
monochromatic
#232509 #505616 #7E8722 #ACB82E #C7D350

Accessibility & contrast

On white

3.91
#7E8722 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#7E8722 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8722
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8722#FFFFFF#000000##000000
##7E87221.003.915.385.38
#FFFFFF3.911.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800E
Deuteranopia (green-blind)
#91822A
Tritanopia (blue-blind)
#877F74
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7e8722;
/* rgb */ color: rgb(126, 135, 34);
/* oklch */ color: oklch(59.7% 0.121 114.6);
Tailwind
colors: {
  custom: {
    50: '#a6a965',
    500: '#7e8722',
    950: '#000000',
  },
}
SCSS
$custom: #7e8722;
$custom-light: #a6a965;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8722",
  "rgb": {
    "r": 126,
    "g": 135,
    "b": 34
  },
  "hsl": {
    "h": 65.347,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.59691,
    "c": 0.12119,
    "h": 114.6
  },
  "luminance": 0.21879
}

Semantic roles & 50–950 ramp

primary
#7E8722
secondary
#584EB7
accent
#45E353
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E8722

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

Preview Lab → · Contrast checker → · Palette generator →

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