#7E8A1C#7E8A1C

#7E8A1C is a mid, vivid yellow. Relative luminance 0.227; OKLCH L 60.4% C 0.128 H 116.0°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#7E8A1C
RGBrgb(126, 138, 28)
HSLhsl(67, 66%, 33%)
HSVhsv(67, 80%, 54%)
CMYKcmyk(8.7%, 0%, 79.7%, 45.9%)
CIE-LABlab(54.76, -18.38, 52.66)
CIE-LCHlch(54.76, 55.78, 109.24°)
OKLaboklab(60.37% -0.0561 0.1152)
OKLCHoklch(60.37% 0.128 116)
XYZxyz(17.9028, 22.6967, 4.5362)
Luminance0.2270 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8A1C #281C8A
analogous
#8A5F1C #7E8A1C #478A1C
triadic
#7E8A1C #1C7E8A #8A1C7E
tetradic
#7E8A1C #1C8A5F #281C8A #8A1C47
square
#7E8A1C #1C8A5F #281C8A #8A1C47
split-complementary
#7E8A1C #1C478A #5F1C8A
monochromatic
#212407 #505712 #7E8A1C #ACBD26 #CADA47

Accessibility & contrast

On white

3.79
#7E8A1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#7E8A1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8A1C
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8A1C#FFFFFF#000000##000000
##7E8A1C1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#938426
Tritanopia (blue-blind)
#878276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7e8a1c;
/* rgb */ color: rgb(126, 138, 28);
/* oklch */ color: oklch(60.4% 0.128 116.0);
Tailwind
colors: {
  custom: {
    50: '#a7ac63',
    500: '#7e8a1c',
    950: '#000000',
  },
}
SCSS
$custom: #7e8a1c;
$custom-light: #a7ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8a1c",
  "rgb": {
    "r": 126,
    "g": 138,
    "b": 28
  },
  "hsl": {
    "h": 66.545,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.6037,
    "c": 0.12807,
    "h": 116
  },
  "luminance": 0.22696
}

Semantic roles & 50–950 ramp

primary
#7E8A1C
secondary
#5346BB
accent
#3FE951
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8A1C

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

Preview Lab → · Contrast checker → · Palette generator →

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