#7E8C15#7E8C15

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

Color values

HEX#7E8C15
RGBrgb(126, 140, 21)
HSLhsl(67, 74%, 32%)
HSVhsv(67, 85%, 55%)
CMYKcmyk(10%, 0%, 85%, 45.1%)
CIE-LABlab(55.33, -19.68, 55.17)
CIE-LCHlch(55.33, 58.58, 109.63°)
OKLaboklab(60.82% -0.0601 0.1193)
OKLCHoklch(60.82% 0.134 116.8)
XYZxyz(18.1181, 23.2462, 4.2418)
Luminance0.2325 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8C15 #23158C
analogous
#8C5F15 #7E8C15 #438C15
triadic
#7E8C15 #157E8C #8C157E
tetradic
#7E8C15 #158C5F #23158C #8C1543
square
#7E8C15 #158C5F #23158C #8C1543
split-complementary
#7E8C15 #15438C #5F158C
monochromatic
#1E2205 #4E570D #7E8C15 #AEC11D #CEE13A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8C15#FFFFFF#000000##000000
##7E8C151.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)
#958522
Tritanopia (blue-blind)
#878477
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7e8c15;
/* rgb */ color: rgb(126, 140, 21);
/* oklch */ color: oklch(60.8% 0.134 116.8);
Tailwind
colors: {
  custom: {
    50: '#a7ad60',
    500: '#7e8c15',
    950: '#000000',
  },
}
SCSS
$custom: #7e8c15;
$custom-light: #a7ad60;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8c15",
  "rgb": {
    "r": 126,
    "g": 140,
    "b": 21
  },
  "hsl": {
    "h": 67.059,
    "s": 73.913,
    "l": 31.569
  },
  "oklch": {
    "l": 0.60816,
    "c": 0.13357,
    "h": 116.8
  },
  "luminance": 0.23246
}

Semantic roles & 50–950 ramp

primary
#7E8C15
secondary
#4C3DC0
accent
#37F14D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7E8C15

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

Preview Lab → · Contrast checker → · Palette generator →

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