#7E8A28#7E8A28

#7E8A28 is a mid, vivid yellow. Relative luminance 0.228; OKLCH L 60.5% C 0.121 H 116.2°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#7E8A28
RGBrgb(126, 138, 40)
HSLhsl(67, 55%, 35%)
HSVhsv(67, 71%, 54%)
CMYKcmyk(8.7%, 0%, 71%, 45.9%)
CIE-LABlab(54.83, -17.77, 48.42)
CIE-LCHlch(54.83, 51.58, 110.15°)
OKLaboklab(60.45% -0.0533 0.1084)
OKLCHoklch(60.45% 0.121 116.2)
XYZxyz(18.0761, 22.7660, 5.4491)
Luminance0.2277 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8A28 #34288A
analogous
#8A6528 #7E8A28 #4D8A28
triadic
#7E8A28 #287E8A #8A287E
tetradic
#7E8A28 #288A65 #34288A #8A284D
square
#7E8A28 #288A65 #34288A #8A284D
split-complementary
#7E8A28 #284D8A #65288A
monochromatic
#272B0C #535B1A #7E8A28 #A9B936 #C2D05D

Accessibility & contrast

On white

3.78
#7E8A28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#7E8A28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8A28
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8A28#FFFFFF#000000##000000
##7E8A281.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#948318
Deuteranopia (green-blind)
#938430
Tritanopia (blue-blind)
#868277
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7e8a28;
/* rgb */ color: rgb(126, 138, 40);
/* oklch */ color: oklch(60.5% 0.121 116.2);
Tailwind
colors: {
  custom: {
    50: '#a6ac68',
    500: '#7e8a28',
    950: '#000000',
  },
}
SCSS
$custom: #7e8a28;
$custom-light: #a6ac68;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8a28",
  "rgb": {
    "r": 126,
    "g": 138,
    "b": 40
  },
  "hsl": {
    "h": 67.347,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.60451,
    "c": 0.12074,
    "h": 116.2
  },
  "luminance": 0.22766
}

Semantic roles & 50–950 ramp

primary
#7E8A28
secondary
#6459B5
accent
#49DE5C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7E8A28

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

Preview Lab → · Contrast checker → · Palette generator →

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