#7E8B17#7E8B17

#7E8B17 is a mid, vivid yellow. Relative luminance 0.230; OKLCH L 60.6% C 0.132 H 116.3°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#7E8B17
RGBrgb(126, 139, 23)
HSLhsl(67, 72%, 32%)
HSVhsv(67, 83%, 55%)
CMYKcmyk(9.4%, 0%, 83.5%, 45.5%)
CIE-LABlab(55.03, -19.09, 54.39)
CIE-LCHlch(55.03, 57.65, 109.34°)
OKLaboklab(60.59% -0.0584 0.1179)
OKLCHoklch(60.59% 0.132 116.3)
XYZxyz(17.9920, 22.9630, 4.2949)
Luminance0.2296 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8B17 #24178B
analogous
#8B5E17 #7E8B17 #448B17
triadic
#7E8B17 #177E8B #8B177E
tetradic
#7E8B17 #178B5E #24178B #8B1744
square
#7E8B17 #178B5E #24178B #8B1744
split-complementary
#7E8B17 #17448B #5E178B
monochromatic
#1F2206 #4E560E #7E8B17 #AEC020 #CDDF3D

Accessibility & contrast

On white

3.75
#7E8B17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#7E8B17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8B17
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8B17#FFFFFF#000000##000000
##7E8B171.003.755.595.59
#FFFFFF3.751.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#948423
Tritanopia (blue-blind)
#878376
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7e8b17;
/* rgb */ color: rgb(126, 139, 23);
/* oklch */ color: oklch(60.6% 0.132 116.3);
Tailwind
colors: {
  custom: {
    50: '#a7ac61',
    500: '#7e8b17',
    950: '#000000',
  },
}
SCSS
$custom: #7e8b17;
$custom-light: #a7ac61;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8b17",
  "rgb": {
    "r": 126,
    "g": 139,
    "b": 23
  },
  "hsl": {
    "h": 66.724,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.60585,
    "c": 0.1316,
    "h": 116.3
  },
  "luminance": 0.22963
}

Semantic roles & 50–950 ramp

primary
#7E8B17
secondary
#4E3FBF
accent
#39EE4E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7E8B17

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

Preview Lab → · Contrast checker → · Palette generator →

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