#7D8F18#7D8F18

#7D8F18 is a mid, vivid yellow. Relative luminance 0.241; OKLCH L 61.5% C 0.136 H 118.5°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#7D8F18
RGBrgb(125, 143, 24)
HSLhsl(69, 71%, 33%)
HSVhsv(69, 83%, 56%)
CMYKcmyk(12.6%, 0%, 83.2%, 43.9%)
CIE-LABlab(56.16, -21.55, 55.07)
CIE-LCHlch(56.16, 59.13, 111.37°)
OKLaboklab(61.47% -0.065 0.1196)
OKLCHoklch(61.47% 0.136 118.5)
XYZxyz(18.4452, 24.0710, 4.5384)
Luminance0.2407 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8F18 #2A188F
analogous
#8F6618 #7D8F18 #418F18
triadic
#7D8F18 #187D8F #8F187D
tetradic
#7D8F18 #188F66 #2A188F #8F1841
square
#7D8F18 #188F66 #2A188F #8F1841
split-complementary
#7D8F18 #18418F #66188F
monochromatic
#212606 #4F5B0F #7D8F18 #ABC321 #C8DF42

Accessibility & contrast

On white

3.61
#7D8F18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#7D8F18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8F18
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8F18#FFFFFF#000000##000000
##7D8F181.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#998700
Deuteranopia (green-blind)
#978725
Tritanopia (blue-blind)
#85877A
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #7d8f18;
/* rgb */ color: rgb(125, 143, 24);
/* oklch */ color: oklch(61.5% 0.136 118.5);
Tailwind
colors: {
  custom: {
    50: '#a6af62',
    500: '#7d8f18',
    950: '#000000',
  },
}
SCSS
$custom: #7d8f18;
$custom-light: #a6af62;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8f18",
  "rgb": {
    "r": 125,
    "g": 143,
    "b": 24
  },
  "hsl": {
    "h": 69.076,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.61471,
    "c": 0.13614,
    "h": 118.5
  },
  "luminance": 0.24071
}

Semantic roles & 50–950 ramp

primary
#7D8F18
secondary
#5643C0
accent
#3AEE55
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7D8F18

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

Preview Lab → · Contrast checker → · Palette generator →

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