#7C8A24#7C8A24

#7C8A24 is a mid, vivid yellow. Relative luminance 0.226; OKLCH L 60.3% C 0.124 H 117.1°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#7C8A24
RGBrgb(124, 138, 36)
HSLhsl(68, 59%, 34%)
HSVhsv(68, 74%, 54%)
CMYKcmyk(10.1%, 0%, 73.9%, 45.9%)
CIE-LABlab(54.65, -18.88, 49.73)
CIE-LCHlch(54.65, 53.20, 110.79°)
OKLaboklab(60.26% -0.0566 0.1105)
OKLCHoklch(60.26% 0.124 117.1)
XYZxyz(17.7195, 22.5896, 5.0955)
Luminance0.2259 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8A24 #32248A
analogous
#8A6524 #7C8A24 #498A24
triadic
#7C8A24 #247C8A #8A247C
tetradic
#7C8A24 #248A65 #32248A #8A2449
square
#7C8A24 #248A65 #32248A #8A2449
split-complementary
#7C8A24 #24498A #65248A
monochromatic
#25290B #505917 #7C8A24 #A8BB31 #C2D356

Accessibility & contrast

On white

3.81
#7C8A24 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#7C8A24 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8A24
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8A24#FFFFFF#000000##000000
##7C8A241.003.815.525.52
#FFFFFF3.811.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#948211
Deuteranopia (green-blind)
#92832C
Tritanopia (blue-blind)
#848276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7c8a24;
/* rgb */ color: rgb(124, 138, 36);
/* oklch */ color: oklch(60.3% 0.124 117.1);
Tailwind
colors: {
  custom: {
    50: '#a5ac66',
    500: '#7c8a24',
    950: '#000000',
  },
}
SCSS
$custom: #7c8a24;
$custom-light: #a5ac66;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8a24",
  "rgb": {
    "r": 124,
    "g": 138,
    "b": 36
  },
  "hsl": {
    "h": 68.235,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.60256,
    "c": 0.12415,
    "h": 117.1
  },
  "luminance": 0.22589
}

Semantic roles & 50–950 ramp

primary
#7C8A24
secondary
#6153B7
accent
#46E25B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8A24

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

Preview Lab → · Contrast checker → · Palette generator →

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