#7E8618#7E8618

#7E8618 is a mid, vivid yellow. Relative luminance 0.216; OKLCH L 59.4% C 0.126 H 114.0°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#7E8618
RGBrgb(126, 134, 24)
HSLhsl(64, 70%, 31%)
HSVhsv(64, 82%, 53%)
CMYKcmyk(6%, 0%, 82.1%, 47.5%)
CIE-LABlab(53.55, -16.45, 52.81)
CIE-LCHlch(53.55, 55.31, 107.30°)
OKLaboklab(59.39% -0.051 0.1147)
OKLCHoklch(59.39% 0.126 114)
XYZxyz(17.2947, 21.5521, 4.1129)
Luminance0.2155 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8618 #201886
analogous
#865718 #7E8618 #478618
triadic
#7E8618 #187E86 #86187E
tetradic
#7E8618 #188657 #201886 #861847
square
#7E8618 #188657 #201886 #861847
split-complementary
#7E8618 #184786 #571886
monochromatic
#1C1E05 #4D520F #7E8618 #AFBA21 #D0DC3C

Accessibility & contrast

On white

3.95
#7E8618 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#7E8618 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8618
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8618#FFFFFF#000000##000000
##7E86181.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e8618;
/* rgb */ color: rgb(126, 134, 24);
/* oklch */ color: oklch(59.4% 0.126 114.0);
Tailwind
colors: {
  custom: {
    50: '#a7a960',
    500: '#7e8618',
    950: '#000000',
  },
}
SCSS
$custom: #7e8618;
$custom-light: #a7a960;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8618",
  "rgb": {
    "r": 126,
    "g": 134,
    "b": 24
  },
  "hsl": {
    "h": 64.364,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.59393,
    "c": 0.12556,
    "h": 114
  },
  "luminance": 0.21552
}

Semantic roles & 50–950 ramp

primary
#7E8618
secondary
#4940BA
accent
#3BEC48
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7E8618

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

Preview Lab → · Contrast checker → · Palette generator →

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