#7E8C13#7E8C13

#7E8C13 is a mid, vivid yellow. Relative luminance 0.232; OKLCH L 60.8% C 0.134 H 116.7°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#7E8C13
RGBrgb(126, 140, 19)
HSLhsl(67, 76%, 31%)
HSVhsv(67, 86%, 55%)
CMYKcmyk(10%, 0%, 86.4%, 45.1%)
CIE-LABlab(55.32, -19.74, 55.67)
CIE-LCHlch(55.32, 59.06, 109.53°)
OKLaboklab(60.81% -0.0604 0.12)
OKLCHoklch(60.81% 0.134 116.7)
XYZxyz(18.1003, 23.2391, 4.1480)
Luminance0.2324 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8C13 #21138C
analogous
#8C5D13 #7E8C13 #418C13
triadic
#7E8C13 #137E8C #8C137E
tetradic
#7E8C13 #138C5D #21138C #8C1341
square
#7E8C13 #138C5D #21138C #8C1341
split-complementary
#7E8C13 #13418C #5D138C
monochromatic
#1D2004 #4E560C #7E8C13 #AEC21A #D0E436

Accessibility & contrast

On white

3.72
#7E8C13 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#7E8C13 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8C13
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8C13#FFFFFF#000000##000000
##7E8C131.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#958521
Tritanopia (blue-blind)
#878377
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7e8c13;
/* rgb */ color: rgb(126, 140, 19);
/* oklch */ color: oklch(60.8% 0.134 116.7);
Tailwind
colors: {
  custom: {
    50: '#a7ad5f',
    500: '#7e8c13',
    950: '#000000',
  },
}
SCSS
$custom: #7e8c13;
$custom-light: #a7ad5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8c13",
  "rgb": {
    "r": 126,
    "g": 140,
    "b": 19
  },
  "hsl": {
    "h": 66.942,
    "s": 76.101,
    "l": 31.176
  },
  "oklch": {
    "l": 0.60808,
    "c": 0.13435,
    "h": 116.7
  },
  "luminance": 0.23239
}

Semantic roles & 50–950 ramp

primary
#7E8C13
secondary
#4A3BC0
accent
#35F34B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7E8C13

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

Preview Lab → · Contrast checker → · Palette generator →

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