#7E8B14#7E8B14

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

Color values

HEX#7E8B14
RGBrgb(126, 139, 20)
HSLhsl(67, 75%, 31%)
HSVhsv(67, 86%, 55%)
CMYKcmyk(9.4%, 0%, 85.6%, 45.5%)
CIE-LABlab(55.02, -19.19, 55.17)
CIE-LCHlch(55.02, 58.41, 109.18°)
OKLaboklab(60.57% -0.0589 0.1191)
OKLCHoklch(60.57% 0.133 116.3)
XYZxyz(17.9636, 22.9516, 4.1455)
Luminance0.2295 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8B14 #21148B
analogous
#8B5C14 #7E8B14 #428B14
triadic
#7E8B14 #147E8B #8B147E
tetradic
#7E8B14 #148B5C #21148B #8B1442
square
#7E8B14 #148B5C #21148B #8B1442
split-complementary
#7E8B14 #14428B #5C148B
monochromatic
#1D2005 #4D550C #7E8B14 #AEC11C #D0E237

Accessibility & contrast

On white

3.76
#7E8B14 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8B14#FFFFFF#000000##000000
##7E8B141.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e8b14;
/* rgb */ color: rgb(126, 139, 20);
/* oklch */ color: oklch(60.6% 0.133 116.3);
Tailwind
colors: {
  custom: {
    50: '#a7ac60',
    500: '#7e8b14',
    950: '#000000',
  },
}
SCSS
$custom: #7e8b14;
$custom-light: #a7ac60;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8b14",
  "rgb": {
    "r": 126,
    "g": 139,
    "b": 20
  },
  "hsl": {
    "h": 66.555,
    "s": 74.843,
    "l": 31.176
  },
  "oklch": {
    "l": 0.60571,
    "c": 0.13285,
    "h": 116.3
  },
  "luminance": 0.22951
}

Semantic roles & 50–950 ramp

primary
#7E8B14
secondary
#4A3CBF
accent
#36F14B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7E8B14

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

Preview Lab → · Contrast checker → · Palette generator →

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