#7D8A15#7D8A15

#7D8A15 is a mid, vivid yellow. Relative luminance 0.226; OKLCH L 60.3% C 0.132 H 116.4°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#7D8A15
RGBrgb(125, 138, 21)
HSLhsl(67, 74%, 31%)
HSVhsv(67, 85%, 54%)
CMYKcmyk(9.4%, 0%, 84.8%, 45.9%)
CIE-LABlab(54.65, -19.09, 54.56)
CIE-LCHlch(54.65, 57.81, 109.28°)
OKLaboklab(60.25% -0.0585 0.118)
OKLCHoklch(60.25% 0.132 116.4)
XYZxyz(17.6818, 22.5913, 4.1384)
Luminance0.2259 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8A15 #22158A
analogous
#8A5C15 #7D8A15 #428A15
triadic
#7D8A15 #157D8A #8A157D
tetradic
#7D8A15 #158A5C #22158A #8A1542
square
#7D8A15 #158A5C #22158A #8A1542
split-complementary
#7D8A15 #15428A #5C158A
monochromatic
#1D2005 #4D550D #7D8A15 #ADBF1D #CEE139

Accessibility & contrast

On white

3.81
#7D8A15 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#7D8A15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8A15
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8A15#FFFFFF#000000##000000
##7D8A151.003.815.525.52
#FFFFFF3.811.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#938322
Tritanopia (blue-blind)
#868275
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7d8a15;
/* rgb */ color: rgb(125, 138, 21);
/* oklch */ color: oklch(60.3% 0.132 116.4);
Tailwind
colors: {
  custom: {
    50: '#a6ac60',
    500: '#7d8a15',
    950: '#000000',
  },
}
SCSS
$custom: #7d8a15;
$custom-light: #a6ac60;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8a15",
  "rgb": {
    "r": 125,
    "g": 138,
    "b": 21
  },
  "hsl": {
    "h": 66.667,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.60253,
    "c": 0.13169,
    "h": 116.4
  },
  "luminance": 0.22591
}

Semantic roles & 50–950 ramp

primary
#7D8A15
secondary
#4B3DBE
accent
#38F04C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7D8A15

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

Preview Lab → · Contrast checker → · Palette generator →

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