#7E8D2B#7E8D2B

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

Color values

HEX#7E8D2B
RGBrgb(126, 141, 43)
HSLhsl(69, 53%, 36%)
HSVhsv(69, 70%, 55%)
CMYKcmyk(10.6%, 0%, 69.5%, 44.7%)
CIE-LABlab(55.75, -19.14, 48.13)
CIE-LCHlch(55.75, 51.80, 111.69°)
OKLaboklab(61.19% -0.0568 0.1082)
OKLCHoklch(61.19% 0.122 117.7)
XYZxyz(18.5655, 23.6600, 5.8738)
Luminance0.2366 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8D2B #3A2B8D
analogous
#8D6B2B #7E8D2B #4D8D2B
triadic
#7E8D2B #2B7E8D #8D2B7E
tetradic
#7E8D2B #2B8D6B #3A2B8D #8D2B4D
square
#7E8D2B #2B8D6B #3A2B8D #8D2B4D
split-complementary
#7E8D2B #2B4D8D #6B2B8D
monochromatic
#2A2F0E #545E1D #7E8D2B #A8BC39 #BFCF63

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8D2B#FFFFFF#000000##000000
##7E8D2B1.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)
#96851C
Deuteranopia (green-blind)
#958632
Tritanopia (blue-blind)
#868579
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7e8d2b;
/* rgb */ color: rgb(126, 141, 43);
/* oklch */ color: oklch(61.2% 0.122 117.7);
Tailwind
colors: {
  custom: {
    50: '#a6ae6a',
    500: '#7e8d2b',
    950: '#000000',
  },
}
SCSS
$custom: #7e8d2b;
$custom-light: #a6ae6a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8d2b",
  "rgb": {
    "r": 126,
    "g": 141,
    "b": 43
  },
  "hsl": {
    "h": 69.184,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.61193,
    "c": 0.12223,
    "h": 117.7
  },
  "luminance": 0.2366
}

Semantic roles & 50–950 ramp

primary
#7E8D2B
secondary
#6C5EB6
accent
#4BDD61
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7E8D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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