#7E8A27#7E8A27

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

Color values

HEX#7E8A27
RGBrgb(126, 138, 39)
HSLhsl(67, 56%, 35%)
HSVhsv(67, 72%, 54%)
CMYKcmyk(8.7%, 0%, 71.7%, 45.9%)
CIE-LABlab(54.82, -17.83, 48.81)
CIE-LCHlch(54.82, 51.96, 110.06°)
OKLaboklab(60.44% -0.0535 0.109)
OKLCHoklch(60.44% 0.121 116.2)
XYZxyz(18.0593, 22.7593, 5.3607)
Luminance0.2276 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8A27 #33278A
analogous
#8A6527 #7E8A27 #4C8A27
triadic
#7E8A27 #277E8A #8A277E
tetradic
#7E8A27 #278A65 #33278A #8A274C
square
#7E8A27 #278A65 #33278A #8A274C
split-complementary
#7E8A27 #274C8A #65278A
monochromatic
#272B0C #525A1A #7E8A27 #AABA34 #C2D15B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8A27#FFFFFF#000000##000000
##7E8A271.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)
#948317
Deuteranopia (green-blind)
#93842F
Tritanopia (blue-blind)
#868277
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7e8a27;
/* rgb */ color: rgb(126, 138, 39);
/* oklch */ color: oklch(60.4% 0.121 116.2);
Tailwind
colors: {
  custom: {
    50: '#a6ac68',
    500: '#7e8a27',
    950: '#000000',
  },
}
SCSS
$custom: #7e8a27;
$custom-light: #a6ac68;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8a27",
  "rgb": {
    "r": 126,
    "g": 138,
    "b": 39
  },
  "hsl": {
    "h": 67.273,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.60443,
    "c": 0.12144,
    "h": 116.2
  },
  "luminance": 0.22759
}

Semantic roles & 50–950 ramp

primary
#7E8A27
secondary
#6357B6
accent
#49DF5B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8A27

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

Preview Lab → · Contrast checker → · Palette generator →

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