#7E8D13#7E8D13

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

Color values

HEX#7E8D13
RGBrgb(126, 141, 19)
HSLhsl(67, 76%, 31%)
HSVhsv(67, 87%, 55%)
CMYKcmyk(10.6%, 0%, 86.5%, 44.7%)
CIE-LABlab(55.62, -20.25, 55.92)
CIE-LCHlch(55.62, 59.47, 109.91°)
OKLaboklab(61.05% -0.0619 0.1205)
OKLCHoklch(61.05% 0.135 117.2)
XYZxyz(18.2471, 23.5326, 4.1970)
Luminance0.2353 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8D13 #22138D
analogous
#8D5F13 #7E8D13 #418D13
triadic
#7E8D13 #137E8D #8D137E
tetradic
#7E8D13 #138D5F #22138D #8D1341
square
#7E8D13 #138D5F #22138D #8D1341
split-complementary
#7E8D13 #13418D #5F138D
monochromatic
#1E2104 #4E570C #7E8D13 #AEC31A #CFE436

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8D13#FFFFFF#000000##000000
##7E8D131.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)
#968621
Tritanopia (blue-blind)
#878478
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7e8d13;
/* rgb */ color: rgb(126, 141, 19);
/* oklch */ color: oklch(61.0% 0.135 117.2);
Tailwind
colors: {
  custom: {
    50: '#a7ae60',
    500: '#7e8d13',
    950: '#000000',
  },
}
SCSS
$custom: #7e8d13;
$custom-light: #a7ae60;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8d13",
  "rgb": {
    "r": 126,
    "g": 141,
    "b": 19
  },
  "hsl": {
    "h": 67.377,
    "s": 76.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.61048,
    "c": 0.13548,
    "h": 117.2
  },
  "luminance": 0.23532
}

Semantic roles & 50–950 ramp

primary
#7E8D13
secondary
#4B3BC1
accent
#35F34C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7E8D13

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

Preview Lab → · Contrast checker → · Palette generator →

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