#7C8618#7C8618

#7C8618 is a mid, vivid yellow. Relative luminance 0.214; OKLCH L 59.2% C 0.126 H 115.0°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#7C8618
RGBrgb(124, 134, 24)
HSLhsl(65, 70%, 31%)
HSVhsv(65, 82%, 53%)
CMYKcmyk(7.5%, 0%, 82.1%, 47.5%)
CIE-LABlab(53.39, -17.35, 52.60)
CIE-LCHlch(53.39, 55.39, 108.26°)
OKLaboklab(59.22% -0.0534 0.1144)
OKLCHoklch(59.22% 0.126 115)
XYZxyz(17.0027, 21.4015, 4.0992)
Luminance0.2140 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8618 #221886
analogous
#865918 #7C8618 #458618
triadic
#7C8618 #187C86 #86187C
tetradic
#7C8618 #188659 #221886 #861845
square
#7C8618 #188659 #221886 #861845
split-complementary
#7C8618 #184586 #591886
monochromatic
#1C1E05 #4C520F #7C8618 #ACBA21 #CEDC3C

Accessibility & contrast

On white

3.98
#7C8618 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#7C8618 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8618
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8618#FFFFFF#000000##000000
##7C86181.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F00
Deuteranopia (green-blind)
#908023
Tritanopia (blue-blind)
#857E72
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7c8618;
/* rgb */ color: rgb(124, 134, 24);
/* oklch */ color: oklch(59.2% 0.126 115.0);
Tailwind
colors: {
  custom: {
    50: '#a5a960',
    500: '#7c8618',
    950: '#000000',
  },
}
SCSS
$custom: #7c8618;
$custom-light: #a5a960;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8618",
  "rgb": {
    "r": 124,
    "g": 134,
    "b": 24
  },
  "hsl": {
    "h": 65.455,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.59223,
    "c": 0.12622,
    "h": 115
  },
  "luminance": 0.21401
}

Semantic roles & 50–950 ramp

primary
#7C8618
secondary
#4B40BA
accent
#3BEC4B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7C8618

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

Preview Lab → · Contrast checker → · Palette generator →

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