#7E8E1E#7E8E1E

#7E8E1E is a mid, vivid yellow. Relative luminance 0.239; OKLCH L 61.3% C 0.132 H 117.8°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#7E8E1E
RGBrgb(126, 142, 30)
HSLhsl(69, 65%, 34%)
HSVhsv(69, 79%, 56%)
CMYKcmyk(11.3%, 0%, 78.9%, 44.3%)
CIE-LABlab(55.96, -20.36, 53.12)
CIE-LCHlch(55.96, 56.89, 110.97°)
OKLaboklab(61.34% -0.0613 0.1165)
OKLCHoklch(61.34% 0.132 117.8)
XYZxyz(18.5120, 23.8756, 4.8613)
Luminance0.2387 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8E1E #2E1E8E
analogous
#8E661E #7E8E1E #468E1E
triadic
#7E8E1E #1E7E8E #8E1E7E
tetradic
#7E8E1E #1E8E66 #2E1E8E #8E1E46
square
#7E8E1E #1E8E66 #2E1E8E #8E1E46
split-complementary
#7E8E1E #1E468E #661E8E
monochromatic
#242909 #515B13 #7E8E1E #ABC129 #C5D94D

Accessibility & contrast

On white

3.64
#7E8E1E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#7E8E1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8E1E
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8E1E#FFFFFF#000000##000000
##7E8E1E1.003.645.785.78
#FFFFFF3.641.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#968729
Tritanopia (blue-blind)
#868679
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7e8e1e;
/* rgb */ color: rgb(126, 142, 30);
/* oklch */ color: oklch(61.3% 0.132 117.8);
Tailwind
colors: {
  custom: {
    50: '#a7af64',
    500: '#7e8e1e',
    950: '#000000',
  },
}
SCSS
$custom: #7e8e1e;
$custom-light: #a7af64;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8e1e",
  "rgb": {
    "r": 126,
    "g": 142,
    "b": 30
  },
  "hsl": {
    "h": 68.571,
    "s": 65.116,
    "l": 33.725
  },
  "oklch": {
    "l": 0.61342,
    "c": 0.13166,
    "h": 117.8
  },
  "luminance": 0.23875
}

Semantic roles & 50–950 ramp

primary
#7E8E1E
secondary
#5C4CBC
accent
#40E858
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8E1E

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

Preview Lab → · Contrast checker → · Palette generator →

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