#7E8F1D#7E8F1D

#7E8F1D is a mid, vivid yellow. Relative luminance 0.242; OKLCH L 61.6% C 0.133 H 118.2°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#7E8F1D
RGBrgb(126, 143, 29)
HSLhsl(69, 66%, 34%)
HSVhsv(69, 80%, 56%)
CMYKcmyk(11.9%, 0%, 79.7%, 43.9%)
CIE-LABlab(56.26, -20.91, 53.71)
CIE-LCHlch(56.26, 57.64, 111.27°)
OKLaboklab(61.58% -0.063 0.1176)
OKLCHoklch(61.58% 0.133 118.2)
XYZxyz(18.6489, 24.1694, 4.8449)
Luminance0.2417 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8F1D #2E1D8F
analogous
#8F671D #7E8F1D #458F1D
triadic
#7E8F1D #1D7E8F #8F1D7E
tetradic
#7E8F1D #1D8F67 #2E1D8F #8F1D45
square
#7E8F1D #1D8F67 #2E1D8F #8F1D45
split-complementary
#7E8F1D #1D458F #671D8F
monochromatic
#242908 #515C13 #7E8F1D #ABC227 #C5DB4C

Accessibility & contrast

On white

3.60
#7E8F1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#7E8F1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8F1D
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8F1D#FFFFFF#000000##000000
##7E8F1D1.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#998700
Deuteranopia (green-blind)
#978728
Tritanopia (blue-blind)
#86877A
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #7e8f1d;
/* rgb */ color: rgb(126, 143, 29);
/* oklch */ color: oklch(61.6% 0.133 118.2);
Tailwind
colors: {
  custom: {
    50: '#a7af64',
    500: '#7e8f1d',
    950: '#000000',
  },
}
SCSS
$custom: #7e8f1d;
$custom-light: #a7af64;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8f1d",
  "rgb": {
    "r": 126,
    "g": 143,
    "b": 29
  },
  "hsl": {
    "h": 68.947,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.61577,
    "c": 0.13336,
    "h": 118.2
  },
  "luminance": 0.24169
}

Semantic roles & 50–950 ramp

primary
#7E8F1D
secondary
#5C4BBD
accent
#3FE958
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8F1D

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

Preview Lab → · Contrast checker → · Palette generator →

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