#7D8618#7D8618

#7D8618 is a mid, vivid yellow. Relative luminance 0.215; OKLCH L 59.3% C 0.126 H 114.5°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#7D8618
RGBrgb(125, 134, 24)
HSLhsl(65, 70%, 31%)
HSVhsv(65, 82%, 53%)
CMYKcmyk(6.7%, 0%, 82.1%, 47.5%)
CIE-LABlab(53.47, -16.90, 52.70)
CIE-LCHlch(53.47, 55.35, 107.78°)
OKLaboklab(59.31% -0.0522 0.1145)
OKLCHoklch(59.31% 0.126 114.5)
XYZxyz(17.1479, 21.4764, 4.1060)
Luminance0.2148 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8618 #211886
analogous
#865818 #7D8618 #468618
triadic
#7D8618 #187D86 #86187D
tetradic
#7D8618 #188658 #211886 #861846
square
#7D8618 #188658 #211886 #861846
split-complementary
#7D8618 #184686 #581886
monochromatic
#1C1E05 #4D520F #7D8618 #ADBA21 #CFDC3C

Accessibility & contrast

On white

3.97
#7D8618 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#7D8618 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8618
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8618#FFFFFF#000000##000000
##7D86181.003.975.305.30
#FFFFFF3.971.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F00
Deuteranopia (green-blind)
#908123
Tritanopia (blue-blind)
#867E72
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7d8618;
/* rgb */ color: rgb(125, 134, 24);
/* oklch */ color: oklch(59.3% 0.126 114.5);
Tailwind
colors: {
  custom: {
    50: '#a6a960',
    500: '#7d8618',
    950: '#000000',
  },
}
SCSS
$custom: #7d8618;
$custom-light: #a6a960;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8618",
  "rgb": {
    "r": 125,
    "g": 134,
    "b": 24
  },
  "hsl": {
    "h": 64.909,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.59308,
    "c": 0.12588,
    "h": 114.5
  },
  "luminance": 0.21476
}

Semantic roles & 50–950 ramp

primary
#7D8618
secondary
#4A40BA
accent
#3BEC4A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7D8618

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

Preview Lab → · Contrast checker → · Palette generator →

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