#7D8D18#7D8D18

#7D8D18 is a mid, vivid yellow. Relative luminance 0.235; OKLCH L 61.0% C 0.134 H 117.7°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#7D8D18
RGBrgb(125, 141, 24)
HSLhsl(68, 71%, 32%)
HSVhsv(68, 83%, 55%)
CMYKcmyk(11.3%, 0%, 83%, 44.7%)
CIE-LABlab(55.56, -20.53, 54.54)
CIE-LCHlch(55.56, 58.28, 110.63°)
OKLaboklab(60.99% -0.0622 0.1185)
OKLCHoklch(60.99% 0.134 117.7)
XYZxyz(18.1477, 23.4759, 4.4393)
Luminance0.2348 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8D18 #28188D
analogous
#8D6218 #7D8D18 #438D18
triadic
#7D8D18 #187D8D #8D187D
tetradic
#7D8D18 #188D62 #28188D #8D1843
square
#7D8D18 #188D62 #28188D #8D1843
split-complementary
#7D8D18 #18438D #62188D
monochromatic
#202406 #4F590F #7D8D18 #ABC121 #C9DF41

Accessibility & contrast

On white

3.69
#7D8D18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#7D8D18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8D18
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8D18#FFFFFF#000000##000000
##7D8D181.003.695.705.70
#FFFFFF3.691.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#958624
Tritanopia (blue-blind)
#858578
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7d8d18;
/* rgb */ color: rgb(125, 141, 24);
/* oklch */ color: oklch(61.0% 0.134 117.7);
Tailwind
colors: {
  custom: {
    50: '#a6ae61',
    500: '#7d8d18',
    950: '#000000',
  },
}
SCSS
$custom: #7d8d18;
$custom-light: #a6ae61;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8d18",
  "rgb": {
    "r": 125,
    "g": 141,
    "b": 24
  },
  "hsl": {
    "h": 68.205,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.60989,
    "c": 0.13382,
    "h": 117.7
  },
  "luminance": 0.23476
}

Semantic roles & 50–950 ramp

primary
#7D8D18
secondary
#5342BF
accent
#3AEE53
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7D8D18

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

Preview Lab → · Contrast checker → · Palette generator →

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