#7E8227#7E8227

#7E8227 is a mid, moderate yellow. Relative luminance 0.205; OKLCH L 58.5% C 0.112 H 111.9°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#7E8227
RGBrgb(126, 130, 39)
HSLhsl(63, 54%, 33%)
HSVhsv(63, 70%, 51%)
CMYKcmyk(3.1%, 0%, 70%, 49%)
CIE-LABlab(52.45, -13.59, 46.44)
CIE-LCHlch(52.45, 48.39, 106.31°)
OKLaboklab(58.54% -0.0417 0.104)
OKLCHoklch(58.54% 0.112 111.9)
XYZxyz(16.9535, 20.5478, 4.9921)
Luminance0.2055 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8227 #2B2782
analogous
#825827 #7E8227 #508227
triadic
#7E8227 #277E82 #82277E
tetradic
#7E8227 #278258 #2B2782 #822750
square
#7E8227 #278258 #2B2782 #822750
split-complementary
#7E8227 #275082 #582782
monochromatic
#23240B #505319 #7E8227 #ACB135 #C7CD57

Accessibility & contrast

On white

4.11
#7E8227 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#7E8227 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8227
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8227#FFFFFF#000000##000000
##7E82271.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C19
Deuteranopia (green-blind)
#8C7E2D
Tritanopia (blue-blind)
#877A70
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7e8227;
/* rgb */ color: rgb(126, 130, 39);
/* oklch */ color: oklch(58.5% 0.112 111.9);
Tailwind
colors: {
  custom: {
    50: '#a6a667',
    500: '#7e8227',
    950: '#000000',
  },
}
SCSS
$custom: #7e8227;
$custom-light: #a6a667;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8227",
  "rgb": {
    "r": 126,
    "g": 130,
    "b": 39
  },
  "hsl": {
    "h": 62.637,
    "s": 53.846,
    "l": 33.137
  },
  "oklch": {
    "l": 0.58542,
    "c": 0.11205,
    "h": 111.9
  },
  "luminance": 0.20547
}

Semantic roles & 50–950 ramp

primary
#7E8227
secondary
#5853B1
accent
#4BDD51
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E8227

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

Preview Lab → · Contrast checker → · Palette generator →

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