#7E8223#7E8223

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

Color values

HEX#7E8223
RGBrgb(126, 130, 35)
HSLhsl(63, 58%, 32%)
HSVhsv(63, 73%, 51%)
CMYKcmyk(3.1%, 0%, 73.1%, 49%)
CIE-LABlab(52.42, -13.82, 48.01)
CIE-LCHlch(52.42, 49.96, 106.06°)
OKLaboklab(58.51% -0.0428 0.1066)
OKLCHoklch(58.51% 0.115 111.9)
XYZxyz(16.8907, 20.5226, 4.6613)
Luminance0.2052 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8223 #272382
analogous
#825623 #7E8223 #4F8223
triadic
#7E8223 #237E82 #82237E
tetradic
#7E8223 #238256 #272382 #82234F
square
#7E8223 #238256 #272382 #82234F
split-complementary
#7E8223 #234F82 #562382
monochromatic
#212209 #4F5216 #7E8223 #ADB230 #CAD050

Accessibility & contrast

On white

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

On black

5.10
#7E8223 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8223
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8223#FFFFFF#000000##000000
##7E82231.004.115.105.10
#FFFFFF4.111.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C12
Deuteranopia (green-blind)
#8D7E2A
Tritanopia (blue-blind)
#877A6F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7e8223;
/* rgb */ color: rgb(126, 130, 35);
/* oklch */ color: oklch(58.5% 0.115 111.9);
Tailwind
colors: {
  custom: {
    50: '#a6a665',
    500: '#7e8223',
    950: '#000000',
  },
}
SCSS
$custom: #7e8223;
$custom-light: #a6a665;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8223",
  "rgb": {
    "r": 126,
    "g": 130,
    "b": 35
  },
  "hsl": {
    "h": 62.526,
    "s": 57.576,
    "l": 32.353
  },
  "oklch": {
    "l": 0.58511,
    "c": 0.11485,
    "h": 111.9
  },
  "luminance": 0.20522
}

Semantic roles & 50–950 ramp

primary
#7E8223
secondary
#524DB3
accent
#47E14D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E8223

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

Preview Lab → · Contrast checker → · Palette generator →

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