#7E8823#7E8823

#7E8823 is a mid, vivid yellow. Relative luminance 0.222; OKLCH L 59.9% C 0.122 H 115.1°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#7E8823
RGBrgb(126, 136, 35)
HSLhsl(66, 59%, 34%)
HSVhsv(66, 74%, 53%)
CMYKcmyk(7.4%, 0%, 74.3%, 46.7%)
CIE-LABlab(54.20, -17.00, 49.73)
CIE-LCHlch(54.20, 52.56, 108.88°)
OKLaboklab(59.94% -0.0516 0.1102)
OKLCHoklch(59.94% 0.122 115.1)
XYZxyz(17.7122, 22.1656, 4.9351)
Luminance0.2217 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8823 #2D2388
analogous
#885F23 #7E8823 #4B8823
triadic
#7E8823 #237E88 #88237E
tetradic
#7E8823 #23885F #2D2388 #88234B
square
#7E8823 #23885F #2D2388 #88234B
split-complementary
#7E8823 #234B88 #5F2388
monochromatic
#24270A #515716 #7E8823 #ABB930 #C6D353

Accessibility & contrast

On white

3.87
#7E8823 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#7E8823 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8823
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8823#FFFFFF#000000##000000
##7E88231.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#928110
Deuteranopia (green-blind)
#91822B
Tritanopia (blue-blind)
#868075
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7e8823;
/* rgb */ color: rgb(126, 136, 35);
/* oklch */ color: oklch(59.9% 0.122 115.1);
Tailwind
colors: {
  custom: {
    50: '#a6aa66',
    500: '#7e8823',
    950: '#000000',
  },
}
SCSS
$custom: #7e8823;
$custom-light: #a6aa66;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8823",
  "rgb": {
    "r": 126,
    "g": 136,
    "b": 35
  },
  "hsl": {
    "h": 65.941,
    "s": 59.064,
    "l": 33.529
  },
  "oklch": {
    "l": 0.59936,
    "c": 0.12172,
    "h": 115.1
  },
  "luminance": 0.22165
}

Semantic roles & 50–950 ramp

primary
#7E8823
secondary
#5A50B7
accent
#46E255
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8823

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

Preview Lab → · Contrast checker → · Palette generator →

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