#7E8023#7E8023

#7E8023 is a mid, moderate yellow. Relative luminance 0.200; OKLCH L 58.0% C 0.113 H 110.7°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#7E8023
RGBrgb(126, 128, 35)
HSLhsl(61, 57%, 32%)
HSVhsv(61, 73%, 50%)
CMYKcmyk(1.6%, 0%, 72.7%, 49.8%)
CIE-LABlab(51.83, -12.74, 47.43)
CIE-LCHlch(51.83, 49.11, 105.04°)
OKLaboklab(58.04% -0.0398 0.1054)
OKLCHoklch(58.04% 0.113 110.7)
XYZxyz(16.6273, 19.9958, 4.5735)
Luminance0.1999 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8023 #252380
analogous
#805423 #7E8023 #508023
triadic
#7E8023 #237E80 #80237E
tetradic
#7E8023 #238054 #252380 #802350
square
#7E8023 #238054 #252380 #802350
split-complementary
#7E8023 #235080 #542380
monochromatic
#1F2009 #4F5016 #7E8023 #ADB030 #CCCF4F

Accessibility & contrast

On white

4.20
#7E8023 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#7E8023 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8023
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8023#FFFFFF#000000##000000
##7E80231.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A13
Deuteranopia (green-blind)
#8B7D2A
Tritanopia (blue-blind)
#87786E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7e8023;
/* rgb */ color: rgb(126, 128, 35);
/* oklch */ color: oklch(58.0% 0.113 110.7);
Tailwind
colors: {
  custom: {
    50: '#a6a465',
    500: '#7e8023',
    950: '#000000',
  },
}
SCSS
$custom: #7e8023;
$custom-light: #a6a465;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8023",
  "rgb": {
    "r": 126,
    "g": 128,
    "b": 35
  },
  "hsl": {
    "h": 61.29,
    "s": 57.055,
    "l": 31.961
  },
  "oklch": {
    "l": 0.58038,
    "c": 0.11263,
    "h": 110.7
  },
  "luminance": 0.19995
}

Semantic roles & 50–950 ramp

primary
#7E8023
secondary
#4F4DB2
accent
#47E04B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E8023

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

Preview Lab → · Contrast checker → · Palette generator →

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