#7D8023#7D8023

#7D8023 is a mid, moderate yellow. Relative luminance 0.199; OKLCH L 57.9% C 0.113 H 111.3°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7D8023
RGBrgb(125, 128, 35)
HSLhsl(62, 57%, 32%)
HSVhsv(62, 73%, 50%)
CMYKcmyk(2.3%, 0%, 72.7%, 49.8%)
CIE-LABlab(51.75, -13.20, 47.32)
CIE-LCHlch(51.75, 49.12, 105.59°)
OKLaboklab(57.95% -0.041 0.1052)
OKLCHoklch(57.95% 0.113 111.3)
XYZxyz(16.4805, 19.9201, 4.5666)
Luminance0.1992 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8023 #262380
analogous
#805423 #7D8023 #4F8023
triadic
#7D8023 #237D80 #80237D
tetradic
#7D8023 #238054 #262380 #80234F
square
#7D8023 #238054 #262380 #80234F
split-complementary
#7D8023 #234F80 #542380
monochromatic
#1F2009 #4E5016 #7D8023 #ACB030 #CBCF4F

Accessibility & contrast

On white

4.21
#7D8023 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#7D8023 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8023
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8023#FFFFFF#000000##000000
##7D80231.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d8023;
/* rgb */ color: rgb(125, 128, 35);
/* oklch */ color: oklch(57.9% 0.113 111.3);
Tailwind
colors: {
  custom: {
    50: '#a6a465',
    500: '#7d8023',
    950: '#000000',
  },
}
SCSS
$custom: #7d8023;
$custom-light: #a6a465;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8023",
  "rgb": {
    "r": 125,
    "g": 128,
    "b": 35
  },
  "hsl": {
    "h": 61.935,
    "s": 57.055,
    "l": 31.961
  },
  "oklch": {
    "l": 0.57949,
    "c": 0.11287,
    "h": 111.3
  },
  "luminance": 0.1992
}

Semantic roles & 50–950 ramp

primary
#7D8023
secondary
#504DB2
accent
#47E04C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7D8023

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

Preview Lab → · Contrast checker → · Palette generator →

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