#7E8D14#7E8D14

#7E8D14 is a mid, vivid yellow. Relative luminance 0.235; OKLCH L 61.1% C 0.135 H 117.2°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#7E8D14
RGBrgb(126, 141, 20)
HSLhsl(67, 75%, 32%)
HSVhsv(67, 86%, 55%)
CMYKcmyk(10.6%, 0%, 85.8%, 44.7%)
CIE-LABlab(55.62, -20.22, 55.68)
CIE-LCHlch(55.62, 59.24, 109.96°)
OKLaboklab(61.05% -0.0617 0.1202)
OKLCHoklch(61.05% 0.135 117.2)
XYZxyz(18.2558, 23.5361, 4.2429)
Luminance0.2354 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8D14 #23148D
analogous
#8D6014 #7E8D14 #428D14
triadic
#7E8D14 #147E8D #8D147E
tetradic
#7E8D14 #148D60 #23148D #8D1442
square
#7E8D14 #148D60 #23148D #8D1442
split-complementary
#7E8D14 #14428D #60148D
monochromatic
#1E2205 #4E570C #7E8D14 #AEC31C #CEE339

Accessibility & contrast

On white

3.68
#7E8D14 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#7E8D14 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8D14
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8D14#FFFFFF#000000##000000
##7E8D141.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#968622
Tritanopia (blue-blind)
#868478
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7e8d14;
/* rgb */ color: rgb(126, 141, 20);
/* oklch */ color: oklch(61.1% 0.135 117.2);
Tailwind
colors: {
  custom: {
    50: '#a7ae60',
    500: '#7e8d14',
    950: '#000000',
  },
}
SCSS
$custom: #7e8d14;
$custom-light: #a7ae60;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8d14",
  "rgb": {
    "r": 126,
    "g": 141,
    "b": 20
  },
  "hsl": {
    "h": 67.438,
    "s": 75.155,
    "l": 31.569
  },
  "oklch": {
    "l": 0.61052,
    "c": 0.1351,
    "h": 117.2
  },
  "luminance": 0.23536
}

Semantic roles & 50–950 ramp

primary
#7E8D14
secondary
#4C3CC1
accent
#36F24D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7E8D14

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

Preview Lab → · Contrast checker → · Palette generator →

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