#7D8A28#7D8A28

#7D8A28 is a mid, vivid yellow. Relative luminance 0.227; OKLCH L 60.4% C 0.121 H 116.7°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#7D8A28
RGBrgb(125, 138, 40)
HSLhsl(68, 55%, 35%)
HSVhsv(68, 71%, 54%)
CMYKcmyk(9.4%, 0%, 71%, 45.9%)
CIE-LABlab(54.75, -18.21, 48.31)
CIE-LCHlch(54.75, 51.63, 110.65°)
OKLaboklab(60.37% -0.0544 0.1082)
OKLCHoklch(60.37% 0.121 116.7)
XYZxyz(17.9293, 22.6904, 5.4422)
Luminance0.2269 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8A28 #35288A
analogous
#8A6628 #7D8A28 #4C8A28
triadic
#7D8A28 #287D8A #8A287D
tetradic
#7D8A28 #288A66 #35288A #8A284C
square
#7D8A28 #288A66 #35288A #8A284C
split-complementary
#7D8A28 #284C8A #66288A
monochromatic
#272B0C #525B1A #7D8A28 #A8B936 #C1D05D

Accessibility & contrast

On white

3.79
#7D8A28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#7D8A28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8A28
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8A28#FFFFFF#000000##000000
##7D8A281.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#948318
Deuteranopia (green-blind)
#928430
Tritanopia (blue-blind)
#858277
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7d8a28;
/* rgb */ color: rgb(125, 138, 40);
/* oklch */ color: oklch(60.4% 0.121 116.7);
Tailwind
colors: {
  custom: {
    50: '#a5ac68',
    500: '#7d8a28',
    950: '#000000',
  },
}
SCSS
$custom: #7d8a28;
$custom-light: #a5ac68;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8a28",
  "rgb": {
    "r": 125,
    "g": 138,
    "b": 40
  },
  "hsl": {
    "h": 67.959,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.60368,
    "c": 0.12109,
    "h": 116.7
  },
  "luminance": 0.2269
}

Semantic roles & 50–950 ramp

primary
#7D8A28
secondary
#6559B5
accent
#49DE5D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7D8A28

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

Preview Lab → · Contrast checker → · Palette generator →

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