#7E8622#7E8622

#7E8622 is a mid, vivid yellow. Relative luminance 0.216; OKLCH L 59.5% C 0.120 H 114.1°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#7E8622
RGBrgb(126, 134, 34)
HSLhsl(65, 60%, 33%)
HSVhsv(65, 75%, 53%)
CMYKcmyk(6%, 0%, 74.6%, 47.5%)
CIE-LABlab(53.60, -16.00, 49.52)
CIE-LCHlch(53.60, 52.04, 107.91°)
OKLaboklab(59.45% -0.0489 0.1096)
OKLCHoklch(59.45% 0.12 114.1)
XYZxyz(17.4185, 21.6016, 4.7650)
Luminance0.2160 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8622 #2A2286
analogous
#865C22 #7E8622 #4C8622
triadic
#7E8622 #227E86 #86227E
tetradic
#7E8622 #22865C #2A2286 #86224C
square
#7E8622 #22865C #2A2286 #86224C
split-complementary
#7E8622 #224C86 #5C2286
monochromatic
#222409 #505516 #7E8622 #ACB72E #C8D350

Accessibility & contrast

On white

3.95
#7E8622 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#7E8622 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8622
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8622#FFFFFF#000000##000000
##7E86221.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0E
Deuteranopia (green-blind)
#90812A
Tritanopia (blue-blind)
#877E73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7e8622;
/* rgb */ color: rgb(126, 134, 34);
/* oklch */ color: oklch(59.5% 0.120 114.1);
Tailwind
colors: {
  custom: {
    50: '#a6a965',
    500: '#7e8622',
    950: '#000000',
  },
}
SCSS
$custom: #7e8622;
$custom-light: #a6a965;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8622",
  "rgb": {
    "r": 126,
    "g": 134,
    "b": 34
  },
  "hsl": {
    "h": 64.8,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.59453,
    "c": 0.12004,
    "h": 114.1
  },
  "luminance": 0.21601
}

Semantic roles & 50–950 ramp

primary
#7E8622
secondary
#564EB6
accent
#45E352
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E8622

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

Preview Lab → · Contrast checker → · Palette generator →

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