#7D8918#7D8918

#7D8918 is a mid, vivid yellow. Relative luminance 0.223; OKLCH L 60.0% C 0.129 H 116.0°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#7D8918
RGBrgb(125, 137, 24)
HSLhsl(66, 70%, 32%)
HSVhsv(66, 82%, 54%)
CMYKcmyk(8.8%, 0%, 82.5%, 46.3%)
CIE-LABlab(54.36, -18.47, 53.49)
CIE-LCHlch(54.36, 56.59, 109.05°)
OKLaboklab(60.03% -0.0566 0.1162)
OKLCHoklch(60.03% 0.129 116)
XYZxyz(17.5685, 22.3175, 4.2462)
Luminance0.2232 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8918 #241889
analogous
#895D18 #7D8918 #458918
triadic
#7D8918 #187D89 #89187D
tetradic
#7D8918 #18895D #241889 #891845
square
#7D8918 #18895D #241889 #891845
split-complementary
#7D8918 #184589 #5D1889
monochromatic
#1E2106 #4D550F #7D8918 #ADBD21 #CCDD3E

Accessibility & contrast

On white

3.84
#7D8918 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#7D8918 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8918
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8918#FFFFFF#000000##000000
##7D89181.003.845.465.46
#FFFFFF3.841.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#928323
Tritanopia (blue-blind)
#868175
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7d8918;
/* rgb */ color: rgb(125, 137, 24);
/* oklch */ color: oklch(60.0% 0.129 116.0);
Tailwind
colors: {
  custom: {
    50: '#a6ab61',
    500: '#7d8918',
    950: '#000000',
  },
}
SCSS
$custom: #7d8918;
$custom-light: #a6ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8918",
  "rgb": {
    "r": 125,
    "g": 137,
    "b": 24
  },
  "hsl": {
    "h": 66.372,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.60026,
    "c": 0.12925,
    "h": 116
  },
  "luminance": 0.22317
}

Semantic roles & 50–950 ramp

primary
#7D8918
secondary
#4D40BD
accent
#3BED4E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7D8918

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

Preview Lab → · Contrast checker → · Palette generator →

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