#7E8D27#7E8D27

#7E8D27 is a mid, vivid yellow. Relative luminance 0.236; OKLCH L 61.2% C 0.125 H 117.6°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#7E8D27
RGBrgb(126, 141, 39)
HSLhsl(69, 57%, 35%)
HSVhsv(69, 72%, 55%)
CMYKcmyk(10.6%, 0%, 72.3%, 44.7%)
CIE-LABlab(55.72, -19.38, 49.69)
CIE-LCHlch(55.72, 53.34, 111.31°)
OKLaboklab(61.16% -0.0578 0.1109)
OKLCHoklch(61.16% 0.125 117.6)
XYZxyz(18.4957, 23.6321, 5.5062)
Luminance0.2363 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8D27 #36278D
analogous
#8D6927 #7E8D27 #4B8D27
triadic
#7E8D27 #277E8D #8D277E
tetradic
#7E8D27 #278D69 #36278D #8D274B
square
#7E8D27 #278D69 #36278D #8D274B
split-complementary
#7E8D27 #274B8D #69278D
monochromatic
#282D0C #535D1A #7E8D27 #A9BD34 #C1D25C

Accessibility & contrast

On white

3.67
#7E8D27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#7E8D27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8D27
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8D27#FFFFFF#000000##000000
##7E8D271.003.675.735.73
#FFFFFF3.671.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#978515
Deuteranopia (green-blind)
#95862F
Tritanopia (blue-blind)
#868579
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7e8d27;
/* rgb */ color: rgb(126, 141, 39);
/* oklch */ color: oklch(61.2% 0.125 117.6);
Tailwind
colors: {
  custom: {
    50: '#a6ae68',
    500: '#7e8d27',
    950: '#000000',
  },
}
SCSS
$custom: #7e8d27;
$custom-light: #a6ae68;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8d27",
  "rgb": {
    "r": 126,
    "g": 141,
    "b": 39
  },
  "hsl": {
    "h": 68.824,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.61161,
    "c": 0.12505,
    "h": 117.6
  },
  "luminance": 0.23632
}

Semantic roles & 50–950 ramp

primary
#7E8D27
secondary
#6759B7
accent
#48E05E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7E8D27

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

Preview Lab → · Contrast checker → · Palette generator →

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