#7D8518#7D8518

#7D8518 is a mid, vivid yellow. Relative luminance 0.212; OKLCH L 59.1% C 0.125 H 114.0°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#7D8518
RGBrgb(125, 133, 24)
HSLhsl(64, 69%, 31%)
HSVhsv(64, 82%, 52%)
CMYKcmyk(6%, 0%, 82%, 47.8%)
CIE-LABlab(53.17, -16.37, 52.44)
CIE-LCHlch(53.17, 54.94, 107.34°)
OKLaboklab(59.07% -0.0508 0.114)
OKLCHoklch(59.07% 0.125 114)
XYZxyz(17.0104, 21.2013, 4.0602)
Luminance0.2120 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8518 #201885
analogous
#855618 #7D8518 #468518
triadic
#7D8518 #187D85 #85187D
tetradic
#7D8518 #188556 #201885 #851846
square
#7D8518 #188556 #201885 #851846
split-complementary
#7D8518 #184685 #561885
monochromatic
#1C1D05 #4C510F #7D8518 #AEB921 #D0DC3C

Accessibility & contrast

On white

4.01
#7D8518 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#7D8518 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8518
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8518#FFFFFF#000000##000000
##7D85181.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#8F8023
Tritanopia (blue-blind)
#867D71
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7d8518;
/* rgb */ color: rgb(125, 133, 24);
/* oklch */ color: oklch(59.1% 0.125 114.0);
Tailwind
colors: {
  custom: {
    50: '#a6a860',
    500: '#7d8518',
    950: '#000000',
  },
}
SCSS
$custom: #7d8518;
$custom-light: #a6a860;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8518",
  "rgb": {
    "r": 125,
    "g": 133,
    "b": 24
  },
  "hsl": {
    "h": 64.404,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.59069,
    "c": 0.12477,
    "h": 114
  },
  "luminance": 0.21201
}

Semantic roles & 50–950 ramp

primary
#7D8518
secondary
#4940B9
accent
#3CEC49
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7D8518

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

Preview Lab → · Contrast checker → · Palette generator →

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