#7C8A15#7C8A15

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

Color values

HEX#7C8A15
RGBrgb(124, 138, 21)
HSLhsl(67, 74%, 31%)
HSVhsv(67, 85%, 54%)
CMYKcmyk(10.1%, 0%, 84.8%, 45.9%)
CIE-LABlab(54.57, -19.54, 54.47)
CIE-LCHlch(54.57, 57.86, 109.73°)
OKLaboklab(60.17% -0.0597 0.1178)
OKLCHoklch(60.17% 0.132 116.9)
XYZxyz(17.5365, 22.5164, 4.1316)
Luminance0.2252 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8A15 #23158A
analogous
#8A5D15 #7C8A15 #418A15
triadic
#7C8A15 #157C8A #8A157C
tetradic
#7C8A15 #158A5D #23158A #8A1541
square
#7C8A15 #158A5D #23158A #8A1541
split-complementary
#7C8A15 #15418A #5D158A
monochromatic
#1D2005 #4C550D #7C8A15 #ACBF1D #CDE139

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C8A15#FFFFFF#000000##000000
##7C8A151.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)
#938322
Tritanopia (blue-blind)
#848275
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7c8a15;
/* rgb */ color: rgb(124, 138, 21);
/* oklch */ color: oklch(60.2% 0.132 116.9);
Tailwind
colors: {
  custom: {
    50: '#a5ac60',
    500: '#7c8a15',
    950: '#000000',
  },
}
SCSS
$custom: #7c8a15;
$custom-light: #a5ac60;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8a15",
  "rgb": {
    "r": 124,
    "g": 138,
    "b": 21
  },
  "hsl": {
    "h": 67.179,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.6017,
    "c": 0.13207,
    "h": 116.9
  },
  "luminance": 0.22516
}

Semantic roles & 50–950 ramp

primary
#7C8A15
secondary
#4C3DBE
accent
#38F04E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7C8A15

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

Preview Lab → · Contrast checker → · Palette generator →

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