#7E8F27#7E8F27

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

Color values

HEX#7E8F27
RGBrgb(126, 143, 39)
HSLhsl(70, 57%, 36%)
HSVhsv(70, 73%, 56%)
CMYKcmyk(11.9%, 0%, 72.7%, 43.9%)
CIE-LABlab(56.31, -20.41, 50.28)
CIE-LCHlch(56.31, 54.27, 112.10°)
OKLaboklab(61.64% -0.0607 0.1121)
OKLCHoklch(61.64% 0.127 118.4)
XYZxyz(18.7932, 24.2272, 5.6053)
Luminance0.2423 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8F27 #38278F
analogous
#8F6C27 #7E8F27 #4A8F27
triadic
#7E8F27 #277E8F #8F277E
tetradic
#7E8F27 #278F6C #38278F #8F274A
square
#7E8F27 #278F6C #38278F #8F274A
split-complementary
#7E8F27 #274A8F #6C278F
monochromatic
#292F0D #545F1A #7E8F27 #A8BF34 #C0D35D

Accessibility & contrast

On white

3.59
#7E8F27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.85
#7E8F27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8F27
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8F27#FFFFFF#000000##000000
##7E8F271.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#998715
Deuteranopia (green-blind)
#97872F
Tritanopia (blue-blind)
#86877B
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #7e8f27;
/* rgb */ color: rgb(126, 143, 39);
/* oklch */ color: oklch(61.6% 0.127 118.4);
Tailwind
colors: {
  custom: {
    50: '#a6af69',
    500: '#7e8f27',
    950: '#000000',
  },
}
SCSS
$custom: #7e8f27;
$custom-light: #a6af69;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8f27",
  "rgb": {
    "r": 126,
    "g": 143,
    "b": 39
  },
  "hsl": {
    "h": 69.808,
    "s": 57.143,
    "l": 35.686
  },
  "oklch": {
    "l": 0.61641,
    "c": 0.12747,
    "h": 118.4
  },
  "luminance": 0.24227
}

Semantic roles & 50–950 ramp

primary
#7E8F27
secondary
#695AB8
accent
#47E060
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7E8F27

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

Preview Lab → · Contrast checker → · Palette generator →

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