#7D8A14#7D8A14

#7D8A14 is a mid, vivid yellow. Relative luminance 0.226; OKLCH L 60.2% C 0.132 H 116.4°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#7D8A14
RGBrgb(125, 138, 20)
HSLhsl(67, 75%, 31%)
HSVhsv(67, 86%, 54%)
CMYKcmyk(9.4%, 0%, 85.5%, 45.9%)
CIE-LABlab(54.65, -19.12, 54.82)
CIE-LCHlch(54.65, 58.06, 109.23°)
OKLaboklab(60.25% -0.0586 0.1184)
OKLCHoklch(60.25% 0.132 116.4)
XYZxyz(17.6727, 22.5877, 4.0906)
Luminance0.2259 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8A14 #21148A
analogous
#8A5C14 #7D8A14 #428A14
triadic
#7D8A14 #147D8A #8A147D
tetradic
#7D8A14 #148A5C #21148A #8A1442
square
#7D8A14 #148A5C #21148A #8A1442
split-complementary
#7D8A14 #14428A #5C148A
monochromatic
#1C1F05 #4D550C #7D8A14 #ADBF1C #CFE236

Accessibility & contrast

On white

3.81
#7D8A14 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#7D8A14 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8A14
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8A14#FFFFFF#000000##000000
##7D8A141.003.815.525.52
#FFFFFF3.811.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#938321
Tritanopia (blue-blind)
#868275
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7d8a14;
/* rgb */ color: rgb(125, 138, 20);
/* oklch */ color: oklch(60.2% 0.132 116.4);
Tailwind
colors: {
  custom: {
    50: '#a6ac5f',
    500: '#7d8a14',
    950: '#000000',
  },
}
SCSS
$custom: #7d8a14;
$custom-light: #a6ac5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8a14",
  "rgb": {
    "r": 125,
    "g": 138,
    "b": 20
  },
  "hsl": {
    "h": 66.61,
    "s": 74.684,
    "l": 30.98
  },
  "oklch": {
    "l": 0.60248,
    "c": 0.13209,
    "h": 116.4
  },
  "luminance": 0.22587
}

Semantic roles & 50–950 ramp

primary
#7D8A14
secondary
#4A3CBE
accent
#36F14B
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#101005
muted
#7F7F79

Preview Lab

Preview with #7D8A14

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

Preview Lab → · Contrast checker → · Palette generator →

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