#7E8927#7E8927

#7E8927 is a mid, vivid yellow. Relative luminance 0.225; OKLCH L 60.2% C 0.120 H 115.7°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#7E8927
RGBrgb(126, 137, 39)
HSLhsl(67, 56%, 35%)
HSVhsv(67, 72%, 54%)
CMYKcmyk(8%, 0%, 71.5%, 46.3%)
CIE-LABlab(54.53, -17.30, 48.51)
CIE-LCHlch(54.53, 51.51, 109.63°)
OKLaboklab(60.2% -0.0521 0.1084)
OKLCHoklch(60.2% 0.12 115.7)
XYZxyz(17.9165, 22.4737, 5.3131)
Luminance0.2247 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8927 #322789
analogous
#896327 #7E8927 #4D8927
triadic
#7E8927 #277E89 #89277E
tetradic
#7E8927 #278963 #322789 #89274D
square
#7E8927 #278963 #322789 #89274D
split-complementary
#7E8927 #274D89 #632789
monochromatic
#262A0C #525919 #7E8927 #AAB935 #C3D05A

Accessibility & contrast

On white

3.82
#7E8927 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#7E8927 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8927
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8927#FFFFFF#000000##000000
##7E89271.003.825.495.49
#FFFFFF3.821.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#938217
Deuteranopia (green-blind)
#92832F
Tritanopia (blue-blind)
#868176
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7e8927;
/* rgb */ color: rgb(126, 137, 39);
/* oklch */ color: oklch(60.2% 0.120 115.7);
Tailwind
colors: {
  custom: {
    50: '#a6ab68',
    500: '#7e8927',
    950: '#000000',
  },
}
SCSS
$custom: #7e8927;
$custom-light: #a6ab68;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8927",
  "rgb": {
    "r": 126,
    "g": 137,
    "b": 39
  },
  "hsl": {
    "h": 66.735,
    "s": 55.682,
    "l": 34.51
  },
  "oklch": {
    "l": 0.60204,
    "c": 0.12023,
    "h": 115.7
  },
  "luminance": 0.22473
}

Semantic roles & 50–950 ramp

primary
#7E8927
secondary
#6157B5
accent
#49DF5A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8927

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

Preview Lab → · Contrast checker → · Palette generator →

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