#7D8A23#7D8A23

#7D8A23 is a mid, vivid yellow. Relative luminance 0.227; OKLCH L 60.3% C 0.124 H 116.6°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#7D8A23
RGBrgb(125, 138, 35)
HSLhsl(68, 60%, 34%)
HSVhsv(68, 75%, 54%)
CMYKcmyk(9.4%, 0%, 74.6%, 45.9%)
CIE-LABlab(54.72, -18.49, 50.20)
CIE-LCHlch(54.72, 53.50, 110.22°)
OKLaboklab(60.33% -0.0557 0.1113)
OKLCHoklch(60.33% 0.124 116.6)
XYZxyz(17.8497, 22.6585, 5.0230)
Luminance0.2266 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8A23 #30238A
analogous
#8A6423 #7D8A23 #4A8A23
triadic
#7D8A23 #237D8A #8A237D
tetradic
#7D8A23 #238A64 #30238A #8A234A
square
#7D8A23 #238A64 #30238A #8A234A
split-complementary
#7D8A23 #234A8A #64238A
monochromatic
#25280A #515917 #7D8A23 #A9BB2F #C3D454

Accessibility & contrast

On white

3.80
#7D8A23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#7D8A23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8A23
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8A23#FFFFFF#000000##000000
##7D8A231.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#94820F
Deuteranopia (green-blind)
#93842C
Tritanopia (blue-blind)
#858276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7d8a23;
/* rgb */ color: rgb(125, 138, 35);
/* oklch */ color: oklch(60.3% 0.124 116.6);
Tailwind
colors: {
  custom: {
    50: '#a6ac66',
    500: '#7d8a23',
    950: '#000000',
  },
}
SCSS
$custom: #7d8a23;
$custom-light: #a6ac66;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8a23",
  "rgb": {
    "r": 125,
    "g": 138,
    "b": 35
  },
  "hsl": {
    "h": 67.573,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.60331,
    "c": 0.12441,
    "h": 116.6
  },
  "luminance": 0.22658
}

Semantic roles & 50–950 ramp

primary
#7D8A23
secondary
#5E51B7
accent
#45E359
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7D8A23

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

Preview Lab → · Contrast checker → · Palette generator →

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