#7E8B18#7E8B18

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

Color values

HEX#7E8B18
RGBrgb(126, 139, 24)
HSLhsl(67, 71%, 32%)
HSVhsv(67, 83%, 55%)
CMYKcmyk(9.4%, 0%, 82.7%, 45.5%)
CIE-LABlab(55.04, -19.06, 54.12)
CIE-LCHlch(55.04, 57.37, 109.40°)
OKLaboklab(60.59% -0.0582 0.1175)
OKLCHoklch(60.59% 0.131 116.4)
XYZxyz(18.0022, 22.9671, 4.3487)
Luminance0.2297 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8B18 #25188B
analogous
#8B5F18 #7E8B18 #448B18
triadic
#7E8B18 #187E8B #8B187E
tetradic
#7E8B18 #188B5F #25188B #8B1844
square
#7E8B18 #188B5F #25188B #8B1844
split-complementary
#7E8B18 #18448B #5F188B
monochromatic
#1F2306 #4F570F #7E8B18 #ADBF21 #CCDE3F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8B18#FFFFFF#000000##000000
##7E8B181.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)
#948424
Tritanopia (blue-blind)
#878376
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7e8b18;
/* rgb */ color: rgb(126, 139, 24);
/* oklch */ color: oklch(60.6% 0.131 116.4);
Tailwind
colors: {
  custom: {
    50: '#a7ac61',
    500: '#7e8b18',
    950: '#000000',
  },
}
SCSS
$custom: #7e8b18;
$custom-light: #a7ac61;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8b18",
  "rgb": {
    "r": 126,
    "g": 139,
    "b": 24
  },
  "hsl": {
    "h": 66.783,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.60589,
    "c": 0.13116,
    "h": 116.4
  },
  "luminance": 0.22967
}

Semantic roles & 50–950 ramp

primary
#7E8B18
secondary
#4F40BE
accent
#3AED4F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7E8B18

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

Preview Lab → · Contrast checker → · Palette generator →

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