#7E8727#7E8727

#7E8727 is a mid, moderate yellow. Relative luminance 0.219; OKLCH L 59.7% C 0.118 H 114.6°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#7E8727
RGBrgb(126, 135, 39)
HSLhsl(66, 55%, 34%)
HSVhsv(66, 71%, 53%)
CMYKcmyk(6.7%, 0%, 71.1%, 47.1%)
CIE-LABlab(53.93, -16.25, 47.92)
CIE-LCHlch(53.93, 50.60, 108.74°)
OKLaboklab(59.73% -0.0491 0.1071)
OKLCHoklch(59.73% 0.118 114.6)
XYZxyz(17.6348, 21.9104, 5.2192)
Luminance0.2191 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8727 #302787
analogous
#876027 #7E8727 #4E8727
triadic
#7E8727 #277E87 #87277E
tetradic
#7E8727 #278760 #302787 #87274E
square
#7E8727 #278760 #302787 #87274E
split-complementary
#7E8727 #274E87 #602787
monochromatic
#25280C #525819 #7E8727 #AAB635 #C4CF59

Accessibility & contrast

On white

3.90
#7E8727 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#7E8727 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8727
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8727#FFFFFF#000000##000000
##7E87271.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#918018
Deuteranopia (green-blind)
#90822E
Tritanopia (blue-blind)
#867F74
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7e8727;
/* rgb */ color: rgb(126, 135, 39);
/* oklch */ color: oklch(59.7% 0.118 114.6);
Tailwind
colors: {
  custom: {
    50: '#a6a968',
    500: '#7e8727',
    950: '#000000',
  },
}
SCSS
$custom: #7e8727;
$custom-light: #a6a968;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8727",
  "rgb": {
    "r": 126,
    "g": 135,
    "b": 39
  },
  "hsl": {
    "h": 65.625,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.59728,
    "c": 0.11787,
    "h": 114.6
  },
  "luminance": 0.2191
}

Semantic roles & 50–950 ramp

primary
#7E8727
secondary
#5F56B4
accent
#49DF57
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E8727

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

Preview Lab → · Contrast checker → · Palette generator →

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