#7E8318#7E8318

#7E8318 is a mid, vivid yellow. Relative luminance 0.207; OKLCH L 58.7% C 0.122 H 112.4°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#7E8318
RGBrgb(126, 131, 24)
HSLhsl(63, 69%, 30%)
HSVhsv(63, 82%, 51%)
CMYKcmyk(3.8%, 0%, 81.7%, 48.6%)
CIE-LABlab(52.66, -14.86, 52.02)
CIE-LCHlch(52.66, 54.10, 105.94°)
OKLaboklab(58.68% -0.0466 0.113)
OKLCHoklch(58.68% 0.122 112.4)
XYZxyz(16.8859, 20.7346, 3.9766)
Luminance0.2073 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8318 #1D1883
analogous
#835318 #7E8318 #488318
triadic
#7E8318 #187E83 #83187E
tetradic
#7E8318 #188353 #1D1883 #831848
square
#7E8318 #188353 #1D1883 #831848
split-complementary
#7E8318 #184883 #531883
monochromatic
#1A1C05 #4C4F0F #7E8318 #B0B721 #D3DB3A

Accessibility & contrast

On white

4.08
#7E8318 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#7E8318 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8318
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8318#FFFFFF#000000##000000
##7E83181.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7C00
Deuteranopia (green-blind)
#8E7F22
Tritanopia (blue-blind)
#877A70
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7e8318;
/* rgb */ color: rgb(126, 131, 24);
/* oklch */ color: oklch(58.7% 0.122 112.4);
Tailwind
colors: {
  custom: {
    50: '#a7a660',
    500: '#7e8318',
    950: '#000000',
  },
}
SCSS
$custom: #7e8318;
$custom-light: #a7a660;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8318",
  "rgb": {
    "r": 126,
    "g": 131,
    "b": 24
  },
  "hsl": {
    "h": 62.804,
    "s": 69.032,
    "l": 30.392
  },
  "oklch": {
    "l": 0.58679,
    "c": 0.12228,
    "h": 112.4
  },
  "luminance": 0.20734
}

Semantic roles & 50–950 ramp

primary
#7E8318
secondary
#4540B7
accent
#3CEC44
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7E8318

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

Preview Lab → · Contrast checker → · Palette generator →

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