#7E8118#7E8118

#7E8118 is a mid, vivid yellow. Relative luminance 0.202; OKLCH L 58.2% C 0.120 H 111.3°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#7E8118
RGBrgb(126, 129, 24)
HSLhsl(62, 69%, 30%)
HSVhsv(62, 81%, 51%)
CMYKcmyk(2.3%, 0%, 81.4%, 49.4%)
CIE-LABlab(52.07, -13.79, 51.49)
CIE-LCHlch(52.07, 53.31, 104.99°)
OKLaboklab(58.21% -0.0437 0.1119)
OKLCHoklch(58.21% 0.12 111.3)
XYZxyz(16.6199, 20.2025, 3.8880)
Luminance0.2020 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8118 #1B1881
analogous
#814F18 #7E8118 #4A8118
triadic
#7E8118 #187E81 #81187E
tetradic
#7E8118 #18814F #1B1881 #81184A
square
#7E8118 #18814F #1B1881 #81184A
split-complementary
#7E8118 #184A81 #4F1881
monochromatic
#191A05 #4C4D0E #7E8118 #B0B522 #D6DA39

Accessibility & contrast

On white

4.17
#7E8118 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#7E8118 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8118
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8118#FFFFFF#000000##000000
##7E81181.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#8C7D22
Tritanopia (blue-blind)
#87786E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7e8118;
/* rgb */ color: rgb(126, 129, 24);
/* oklch */ color: oklch(58.2% 0.120 111.3);
Tailwind
colors: {
  custom: {
    50: '#a7a560',
    500: '#7e8118',
    950: '#000000',
  },
}
SCSS
$custom: #7e8118;
$custom-light: #a7a560;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8118",
  "rgb": {
    "r": 126,
    "g": 129,
    "b": 24
  },
  "hsl": {
    "h": 61.714,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.58205,
    "c": 0.12013,
    "h": 111.3
  },
  "luminance": 0.20202
}

Semantic roles & 50–950 ramp

primary
#7E8118
secondary
#4340B5
accent
#3CEB41
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7E8118

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

Preview Lab → · Contrast checker → · Palette generator →

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