#7C8B18#7C8B18

#7C8B18 is a mid, vivid yellow. Relative luminance 0.228; OKLCH L 60.4% C 0.132 H 117.3°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#7C8B18
RGBrgb(124, 139, 24)
HSLhsl(68, 71%, 32%)
HSVhsv(68, 83%, 55%)
CMYKcmyk(10.8%, 0%, 82.7%, 45.5%)
CIE-LABlab(54.88, -19.95, 53.92)
CIE-LCHlch(54.88, 57.49, 110.30°)
OKLaboklab(60.43% -0.0606 0.1172)
OKLCHoklch(60.43% 0.132 117.3)
XYZxyz(17.7101, 22.8165, 4.3350)
Luminance0.2282 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8B18 #27188B
analogous
#8B6118 #7C8B18 #438B18
triadic
#7C8B18 #187C8B #8B187C
tetradic
#7C8B18 #188B61 #27188B #8B1843
square
#7C8B18 #188B61 #27188B #8B1843
split-complementary
#7C8B18 #18438B #61188B
monochromatic
#1F2306 #4D570F #7C8B18 #ABBF21 #C9DE3F

Accessibility & contrast

On white

3.77
#7C8B18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#7C8B18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8B18
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8B18#FFFFFF#000000##000000
##7C8B181.003.775.565.56
#FFFFFF3.771.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#948424
Tritanopia (blue-blind)
#848376
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7c8b18;
/* rgb */ color: rgb(124, 139, 24);
/* oklch */ color: oklch(60.4% 0.132 117.3);
Tailwind
colors: {
  custom: {
    50: '#a5ac61',
    500: '#7c8b18',
    950: '#000000',
  },
}
SCSS
$custom: #7c8b18;
$custom-light: #a5ac61;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8b18",
  "rgb": {
    "r": 124,
    "g": 139,
    "b": 24
  },
  "hsl": {
    "h": 67.826,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.60425,
    "c": 0.13191,
    "h": 117.3
  },
  "luminance": 0.22816
}

Semantic roles & 50–950 ramp

primary
#7C8B18
secondary
#5140BE
accent
#3AED52
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7C8B18

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

Preview Lab → · Contrast checker → · Palette generator →

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