#7C8518#7C8518

#7C8518 is a mid, vivid yellow. Relative luminance 0.211; OKLCH L 59.0% C 0.125 H 114.6°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#7C8518
RGBrgb(124, 133, 24)
HSLhsl(65, 69%, 31%)
HSVhsv(65, 82%, 52%)
CMYKcmyk(6.8%, 0%, 82%, 47.8%)
CIE-LABlab(53.09, -16.83, 52.34)
CIE-LCHlch(53.09, 54.97, 107.82°)
OKLaboklab(58.98% -0.052 0.1138)
OKLCHoklch(58.98% 0.125 114.6)
XYZxyz(16.8651, 21.1264, 4.0534)
Luminance0.2113 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8518 #211885
analogous
#855718 #7C8518 #458518
triadic
#7C8518 #187C85 #85187C
tetradic
#7C8518 #188557 #211885 #851845
square
#7C8518 #188557 #211885 #851845
split-complementary
#7C8518 #184585 #571885
monochromatic
#1B1D05 #4C510F #7C8518 #ACB921 #CFDC3C

Accessibility & contrast

On white

4.02
#7C8518 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#7C8518 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8518
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8518#FFFFFF#000000##000000
##7C85181.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#8F8023
Tritanopia (blue-blind)
#857D71
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7c8518;
/* rgb */ color: rgb(124, 133, 24);
/* oklch */ color: oklch(59.0% 0.125 114.6);
Tailwind
colors: {
  custom: {
    50: '#a5a860',
    500: '#7c8518',
    950: '#000000',
  },
}
SCSS
$custom: #7c8518;
$custom-light: #a5a860;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8518",
  "rgb": {
    "r": 124,
    "g": 133,
    "b": 24
  },
  "hsl": {
    "h": 64.954,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.58983,
    "c": 0.1251,
    "h": 114.6
  },
  "luminance": 0.21126
}

Semantic roles & 50–950 ramp

primary
#7C8518
secondary
#4A40B9
accent
#3CEC4A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7C8518

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

Preview Lab → · Contrast checker → · Palette generator →

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