#7C8A14#7C8A14

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

Color values

HEX#7C8A14
RGBrgb(124, 138, 20)
HSLhsl(67, 75%, 31%)
HSVhsv(67, 86%, 54%)
CMYKcmyk(10.1%, 0%, 85.5%, 45.9%)
CIE-LABlab(54.57, -19.57, 54.72)
CIE-LCHlch(54.57, 58.11, 109.68°)
OKLaboklab(60.17% -0.0598 0.1182)
OKLCHoklch(60.17% 0.132 116.8)
XYZxyz(17.5274, 22.5128, 4.0838)
Luminance0.2251 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8A14 #22148A
analogous
#8A5D14 #7C8A14 #418A14
triadic
#7C8A14 #147C8A #8A147C
tetradic
#7C8A14 #148A5D #22148A #8A1441
square
#7C8A14 #148A5D #22148A #8A1441
split-complementary
#7C8A14 #14418A #5D148A
monochromatic
#1C1F05 #4C550C #7C8A14 #ACBF1C #CEE236

Accessibility & contrast

On white

3.82
#7C8A14 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#7C8A14 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8A14
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8A14#FFFFFF#000000##000000
##7C8A141.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c8a14;
/* rgb */ color: rgb(124, 138, 20);
/* oklch */ color: oklch(60.2% 0.132 116.8);
Tailwind
colors: {
  custom: {
    50: '#a5ac5f',
    500: '#7c8a14',
    950: '#000000',
  },
}
SCSS
$custom: #7c8a14;
$custom-light: #a5ac5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8a14",
  "rgb": {
    "r": 124,
    "g": 138,
    "b": 20
  },
  "hsl": {
    "h": 67.119,
    "s": 74.684,
    "l": 30.98
  },
  "oklch": {
    "l": 0.60166,
    "c": 0.13247,
    "h": 116.8
  },
  "luminance": 0.22513
}

Semantic roles & 50–950 ramp

primary
#7C8A14
secondary
#4B3CBE
accent
#36F14D
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#101005
muted
#7F7F79

Preview Lab

Preview with #7C8A14

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

Preview Lab → · Contrast checker → · Palette generator →

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