#7E8914#7E8914

#7E8914 is a mid, vivid yellow. Relative luminance 0.224; OKLCH L 60.1% C 0.131 H 115.4°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#7E8914
RGBrgb(126, 137, 20)
HSLhsl(66, 75%, 31%)
HSVhsv(66, 85%, 54%)
CMYKcmyk(8%, 0%, 85.4%, 46.3%)
CIE-LABlab(54.43, -18.16, 54.66)
CIE-LCHlch(54.43, 57.60, 108.37°)
OKLaboklab(60.09% -0.056 0.118)
OKLCHoklch(60.09% 0.131 115.4)
XYZxyz(17.6766, 22.3778, 4.0498)
Luminance0.2238 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8914 #1F1489
analogous
#895914 #7E8914 #438914
triadic
#7E8914 #147E89 #89147E
tetradic
#7E8914 #148959 #1F1489 #891443
square
#7E8914 #148959 #1F1489 #891443
split-complementary
#7E8914 #144389 #591489
monochromatic
#1C1E04 #4D540C #7E8914 #AFBE1C #D1E236

Accessibility & contrast

On white

3.84
#7E8914 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#7E8914 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8914
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8914#FFFFFF#000000##000000
##7E89141.003.845.485.48
#FFFFFF3.841.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#938321
Tritanopia (blue-blind)
#878074
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7e8914;
/* rgb */ color: rgb(126, 137, 20);
/* oklch */ color: oklch(60.1% 0.131 115.4);
Tailwind
colors: {
  custom: {
    50: '#a7ab5f',
    500: '#7e8914',
    950: '#000000',
  },
}
SCSS
$custom: #7e8914;
$custom-light: #a7ab5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8914",
  "rgb": {
    "r": 126,
    "g": 137,
    "b": 20
  },
  "hsl": {
    "h": 65.641,
    "s": 74.522,
    "l": 30.784
  },
  "oklch": {
    "l": 0.60092,
    "c": 0.13061,
    "h": 115.4
  },
  "luminance": 0.22377
}

Semantic roles & 50–950 ramp

primary
#7E8914
secondary
#483CBD
accent
#37F148
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#101005
muted
#7F7F79

Preview Lab

Preview with #7E8914

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

Preview Lab → · Contrast checker → · Palette generator →

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