#7E8D2A#7E8D2A

#7E8D2A is a mid, vivid yellow. Relative luminance 0.237; OKLCH L 61.2% C 0.123 H 117.6°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#7E8D2A
RGBrgb(126, 141, 42)
HSLhsl(69, 54%, 36%)
HSVhsv(69, 70%, 55%)
CMYKcmyk(10.6%, 0%, 70.2%, 44.7%)
CIE-LABlab(55.74, -19.20, 48.53)
CIE-LCHlch(55.74, 52.19, 111.59°)
OKLaboklab(61.19% -0.0571 0.1089)
OKLCHoklch(61.19% 0.123 117.6)
XYZxyz(18.5474, 23.6527, 5.7784)
Luminance0.2365 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8D2A #392A8D
analogous
#8D6A2A #7E8D2A #4C8D2A
triadic
#7E8D2A #2A7E8D #8D2A7E
tetradic
#7E8D2A #2A8D6A #392A8D #8D2A4C
square
#7E8D2A #2A8D6A #392A8D #8D2A4C
split-complementary
#7E8D2A #2A4C8D #6A2A8D
monochromatic
#2A2F0E #545E1C #7E8D2A #A8BC38 #BFD061

Accessibility & contrast

On white

3.66
#7E8D2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#7E8D2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8D2A
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8D2A#FFFFFF#000000##000000
##7E8D2A1.003.665.735.73
#FFFFFF3.661.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#97851B
Deuteranopia (green-blind)
#958632
Tritanopia (blue-blind)
#868579
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7e8d2a;
/* rgb */ color: rgb(126, 141, 42);
/* oklch */ color: oklch(61.2% 0.123 117.6);
Tailwind
colors: {
  custom: {
    50: '#a6ae6a',
    500: '#7e8d2a',
    950: '#000000',
  },
}
SCSS
$custom: #7e8d2a;
$custom-light: #a6ae6a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8d2a",
  "rgb": {
    "r": 126,
    "g": 141,
    "b": 42
  },
  "hsl": {
    "h": 69.091,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.61185,
    "c": 0.12296,
    "h": 117.6
  },
  "luminance": 0.23653
}

Semantic roles & 50–950 ramp

primary
#7E8D2A
secondary
#6A5DB6
accent
#4ADD61
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7E8D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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