#7C8D24#7C8D24

#7C8D24 is a mid, vivid yellow. Relative luminance 0.235; OKLCH L 61.0% C 0.128 H 118.5°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#7C8D24
RGBrgb(124, 141, 36)
HSLhsl(70, 59%, 35%)
HSVhsv(70, 74%, 55%)
CMYKcmyk(12.1%, 0%, 74.5%, 44.7%)
CIE-LABlab(55.55, -20.43, 50.60)
CIE-LCHlch(55.55, 54.57, 111.98°)
OKLaboklab(60.98% -0.0609 0.1123)
OKLCHoklch(60.98% 0.128 118.5)
XYZxyz(18.1559, 23.4624, 5.2410)
Luminance0.2346 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8D24 #35248D
analogous
#8D6924 #7C8D24 #488D24
triadic
#7C8D24 #247C8D #8D247C
tetradic
#7C8D24 #248D69 #35248D #8D2448
square
#7C8D24 #248D69 #35248D #8D2448
split-complementary
#7C8D24 #24488D #69248D
monochromatic
#262B0B #515C18 #7C8D24 #A7BE30 #C0D457

Accessibility & contrast

On white

3.69
#7C8D24 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.69
#7C8D24 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8D24
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8D24#FFFFFF#000000##000000
##7C8D241.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#97850F
Deuteranopia (green-blind)
#95852D
Tritanopia (blue-blind)
#848579
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7c8d24;
/* rgb */ color: rgb(124, 141, 36);
/* oklch */ color: oklch(61.0% 0.128 118.5);
Tailwind
colors: {
  custom: {
    50: '#a5ae67',
    500: '#7c8d24',
    950: '#000000',
  },
}
SCSS
$custom: #7c8d24;
$custom-light: #a5ae67;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8d24",
  "rgb": {
    "r": 124,
    "g": 141,
    "b": 36
  },
  "hsl": {
    "h": 69.714,
    "s": 59.322,
    "l": 34.706
  },
  "oklch": {
    "l": 0.60978,
    "c": 0.12776,
    "h": 118.5
  },
  "luminance": 0.23462
}

Semantic roles & 50–950 ramp

primary
#7C8D24
secondary
#6554B8
accent
#45E35F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8D24

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

Preview Lab → · Contrast checker → · Palette generator →

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