#7D8818#7D8818

#7D8818 is a mid, vivid yellow. Relative luminance 0.220; OKLCH L 59.8% C 0.128 H 115.5°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#7D8818
RGBrgb(125, 136, 24)
HSLhsl(66, 70%, 31%)
HSVhsv(66, 82%, 53%)
CMYKcmyk(8.1%, 0%, 82.4%, 46.7%)
CIE-LABlab(54.06, -17.95, 53.23)
CIE-LCHlch(54.06, 56.17, 108.63°)
OKLaboklab(59.79% -0.0551 0.1157)
OKLCHoklch(59.79% 0.128 115.5)
XYZxyz(17.4270, 22.0345, 4.1990)
Luminance0.2203 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8818 #231888
analogous
#885B18 #7D8818 #458818
triadic
#7D8818 #187D88 #88187D
tetradic
#7D8818 #18885B #231888 #881845
square
#7D8818 #18885B #231888 #881845
split-complementary
#7D8818 #184588 #5B1888
monochromatic
#1D2006 #4D540F #7D8818 #ADBC21 #CDDD3E

Accessibility & contrast

On white

3.88
#7D8818 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#7D8818 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8818
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8818#FFFFFF#000000##000000
##7D88181.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#928100
Deuteranopia (green-blind)
#918223
Tritanopia (blue-blind)
#868074
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7d8818;
/* rgb */ color: rgb(125, 136, 24);
/* oklch */ color: oklch(59.8% 0.128 115.5);
Tailwind
colors: {
  custom: {
    50: '#a6aa61',
    500: '#7d8818',
    950: '#000000',
  },
}
SCSS
$custom: #7d8818;
$custom-light: #a6aa61;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8818",
  "rgb": {
    "r": 125,
    "g": 136,
    "b": 24
  },
  "hsl": {
    "h": 65.893,
    "s": 70,
    "l": 31.373
  },
  "oklch": {
    "l": 0.59786,
    "c": 0.12813,
    "h": 115.5
  },
  "luminance": 0.22034
}

Semantic roles & 50–950 ramp

primary
#7D8818
secondary
#4C40BC
accent
#3BED4C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7D8818

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

Preview Lab → · Contrast checker → · Palette generator →

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