#7C8C17#7C8C17

#7C8C17 is a mid, vivid yellow. Relative luminance 0.231; OKLCH L 60.7% C 0.134 H 117.7°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#7C8C17
RGBrgb(124, 140, 23)
HSLhsl(68, 72%, 32%)
HSVhsv(68, 84%, 55%)
CMYKcmyk(11.4%, 0%, 83.6%, 45.1%)
CIE-LABlab(55.18, -20.50, 54.46)
CIE-LCHlch(55.18, 58.19, 110.63°)
OKLaboklab(60.66% -0.0622 0.1182)
OKLCHoklch(60.66% 0.134 117.7)
XYZxyz(17.8454, 23.1033, 4.3297)
Luminance0.2310 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8C17 #27178C
analogous
#8C6217 #7C8C17 #428C17
triadic
#7C8C17 #177C8C #8C177C
tetradic
#7C8C17 #178C62 #27178C #8C1742
square
#7C8C17 #178C62 #27178C #8C1742
split-complementary
#7C8C17 #17428C #62178C
monochromatic
#1F2306 #4D570E #7C8C17 #ABC120 #C9DF3E

Accessibility & contrast

On white

3.74
#7C8C17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#7C8C17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8C17
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8C17#FFFFFF#000000##000000
##7C8C171.003.745.625.62
#FFFFFF3.741.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#948523
Tritanopia (blue-blind)
#848477
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7c8c17;
/* rgb */ color: rgb(124, 140, 23);
/* oklch */ color: oklch(60.7% 0.134 117.7);
Tailwind
colors: {
  custom: {
    50: '#a5ad61',
    500: '#7c8c17',
    950: '#000000',
  },
}
SCSS
$custom: #7c8c17;
$custom-light: #a5ad61;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8c17",
  "rgb": {
    "r": 124,
    "g": 140,
    "b": 23
  },
  "hsl": {
    "h": 68.205,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.60662,
    "c": 0.1335,
    "h": 117.7
  },
  "luminance": 0.23103
}

Semantic roles & 50–950 ramp

primary
#7C8C17
secondary
#513FBF
accent
#39EF52
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7C8C17

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

Preview Lab → · Contrast checker → · Palette generator →

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