#7C8D15#7C8D15

#7C8D15 is a mid, vivid yellow. Relative luminance 0.234; OKLCH L 60.9% C 0.135 H 118.1°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#7C8D15
RGBrgb(124, 141, 21)
HSLhsl(69, 74%, 32%)
HSVhsv(69, 85%, 55%)
CMYKcmyk(12.1%, 0%, 85.1%, 44.7%)
CIE-LABlab(55.47, -21.08, 55.24)
CIE-LCHlch(55.47, 59.12, 110.88°)
OKLaboklab(60.9% -0.0639 0.1195)
OKLCHoklch(60.9% 0.135 118.1)
XYZxyz(17.9729, 23.3892, 4.2771)
Luminance0.2339 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8D15 #26158D
analogous
#8D6215 #7C8D15 #408D15
triadic
#7C8D15 #157C8D #8D157C
tetradic
#7C8D15 #158D62 #26158D #8D1540
square
#7C8D15 #158D62 #26158D #8D1540
split-complementary
#7C8D15 #15408D #62158D
monochromatic
#1E2205 #4D580D #7C8D15 #ABC21D #CAE23B

Accessibility & contrast

On white

3.70
#7C8D15 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#7C8D15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8D15
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8D15#FFFFFF#000000##000000
##7C8D151.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#958522
Tritanopia (blue-blind)
#848578
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7c8d15;
/* rgb */ color: rgb(124, 141, 21);
/* oklch */ color: oklch(60.9% 0.135 118.1);
Tailwind
colors: {
  custom: {
    50: '#a6ae60',
    500: '#7c8d15',
    950: '#000000',
  },
}
SCSS
$custom: #7c8d15;
$custom-light: #a6ae60;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8d15",
  "rgb": {
    "r": 124,
    "g": 141,
    "b": 21
  },
  "hsl": {
    "h": 68.5,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.60895,
    "c": 0.13548,
    "h": 118.1
  },
  "luminance": 0.23389
}

Semantic roles & 50–950 ramp

primary
#7C8D15
secondary
#503DC1
accent
#37F151
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7C8D15

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

Preview Lab → · Contrast checker → · Palette generator →

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