#7E8D19#7E8D19

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

Color values

HEX#7E8D19
RGBrgb(126, 141, 25)
HSLhsl(68, 70%, 33%)
HSVhsv(68, 82%, 55%)
CMYKcmyk(10.6%, 0%, 82.3%, 44.7%)
CIE-LABlab(55.64, -20.05, 54.36)
CIE-LCHlch(55.64, 57.94, 110.25°)
OKLaboklab(61.08% -0.0609 0.1182)
OKLCHoklch(61.08% 0.133 117.3)
XYZxyz(18.3050, 23.5558, 4.5019)
Luminance0.2356 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8D19 #28198D
analogous
#8D6219 #7E8D19 #448D19
triadic
#7E8D19 #197E8D #8D197E
tetradic
#7E8D19 #198D62 #28198D #8D1944
square
#7E8D19 #198D62 #28198D #8D1944
split-complementary
#7E8D19 #19448D #62198D
monochromatic
#212507 #505910 #7E8D19 #ACC122 #CADE43

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8D19#FFFFFF#000000##000000
##7E8D191.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)
#968625
Tritanopia (blue-blind)
#868578
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7e8d19;
/* rgb */ color: rgb(126, 141, 25);
/* oklch */ color: oklch(61.1% 0.133 117.3);
Tailwind
colors: {
  custom: {
    50: '#a7ae62',
    500: '#7e8d19',
    950: '#000000',
  },
}
SCSS
$custom: #7e8d19;
$custom-light: #a7ae62;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8d19",
  "rgb": {
    "r": 126,
    "g": 141,
    "b": 25
  },
  "hsl": {
    "h": 67.759,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.61075,
    "c": 0.13298,
    "h": 117.3
  },
  "luminance": 0.23556
}

Semantic roles & 50–950 ramp

primary
#7E8D19
secondary
#5343BF
accent
#3BED52
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8D19

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

Preview Lab → · Contrast checker → · Palette generator →

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