#7E8E2D#7E8E2D

#7E8E2D is a mid, vivid yellow. Relative luminance 0.240; OKLCH L 61.5% C 0.122 H 118.2°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#7E8E2D
RGBrgb(126, 142, 45)
HSLhsl(70, 52%, 37%)
HSVhsv(70, 68%, 56%)
CMYKcmyk(11.3%, 0%, 68.3%, 44.3%)
CIE-LABlab(56.06, -19.53, 47.62)
CIE-LCHlch(56.06, 51.47, 112.30°)
OKLaboklab(61.45% -0.0577 0.1075)
OKLCHoklch(61.45% 0.122 118.2)
XYZxyz(18.7512, 23.9712, 6.1212)
Luminance0.2397 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8E2D #3D2D8E
analogous
#8E6E2D #7E8E2D #4E8E2D
triadic
#7E8E2D #2D7E8E #8E2D7E
tetradic
#7E8E2D #2D8E6E #3D2D8E #8E2D4E
square
#7E8E2D #2D8E6E #3D2D8E #8E2D4E
split-complementary
#7E8E2D #2D4E8E #6E2D8E
monochromatic
#2C3110 #55601E #7E8E2D #A7BC3C #BECF67

Accessibility & contrast

On white

3.62
#7E8E2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#7E8E2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8E2D
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8E2D#FFFFFF#000000##000000
##7E8E2D1.003.625.795.79
#FFFFFF3.621.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#97861F
Deuteranopia (green-blind)
#968734
Tritanopia (blue-blind)
#86867A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7e8e2d;
/* rgb */ color: rgb(126, 142, 45);
/* oklch */ color: oklch(61.5% 0.122 118.2);
Tailwind
colors: {
  custom: {
    50: '#a6af6c',
    500: '#7e8e2d',
    950: '#000000',
  },
}
SCSS
$custom: #7e8e2d;
$custom-light: #a6af6c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8e2d",
  "rgb": {
    "r": 126,
    "g": 142,
    "b": 45
  },
  "hsl": {
    "h": 69.897,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.6145,
    "c": 0.12199,
    "h": 118.2
  },
  "luminance": 0.23971
}

Semantic roles & 50–950 ramp

primary
#7E8E2D
secondary
#6F61B5
accent
#4CDB64
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7E8E2D

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

Preview Lab → · Contrast checker → · Palette generator →

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