#7E8013#7E8013

#7E8013 is a mid, vivid yellow. Relative luminance 0.199; OKLCH L 57.9% C 0.121 H 110.8°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7E8013
RGBrgb(126, 128, 19)
HSLhsl(61, 74%, 29%)
HSVhsv(61, 85%, 50%)
CMYKcmyk(1.6%, 0%, 85.2%, 49.8%)
CIE-LABlab(51.75, -13.43, 52.65)
CIE-LCHlch(51.75, 54.33, 104.31°)
OKLaboklab(57.94% -0.0431 0.1134)
OKLCHoklch(57.94% 0.121 110.8)
XYZxyz(16.4415, 19.9215, 3.5951)
Luminance0.1992 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8013 #151380
analogous
#804C13 #7E8013 #488013
triadic
#7E8013 #137E80 #80137E
tetradic
#7E8013 #13804C #151380 #801348
square
#7E8013 #13804C #151380 #801348
split-complementary
#7E8013 #134880 #4C1380
monochromatic
#1A1B04 #4A4B0B #7E8013 #B2B51B #DDE02D

Accessibility & contrast

On white

4.21
#7E8013 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#7E8013 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8013
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8013#FFFFFF#000000##000000
##7E80131.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#8C7D1E
Tritanopia (blue-blind)
#87776D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7e8013;
/* rgb */ color: rgb(126, 128, 19);
/* oklch */ color: oklch(57.9% 0.121 110.8);
Tailwind
colors: {
  custom: {
    50: '#a7a45e',
    500: '#7e8013',
    950: '#000000',
  },
}
SCSS
$custom: #7e8013;
$custom-light: #a7a45e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8013",
  "rgb": {
    "r": 126,
    "g": 128,
    "b": 19
  },
  "hsl": {
    "h": 61.101,
    "s": 74.15,
    "l": 28.824
  },
  "oklch": {
    "l": 0.57944,
    "c": 0.12133,
    "h": 110.8
  },
  "luminance": 0.19921
}

Semantic roles & 50–950 ramp

primary
#7E8013
secondary
#3C39B5
accent
#37F13A
background
#FAFAF5
surface
#F4F4E9
border
#CECEC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7E8013

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

Preview Lab → · Contrast checker → · Palette generator →

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