#7C8818#7C8818

#7C8818 is a mid, vivid yellow. Relative luminance 0.220; OKLCH L 59.7% C 0.128 H 116.0°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#7C8818
RGBrgb(124, 136, 24)
HSLhsl(66, 70%, 31%)
HSVhsv(66, 82%, 53%)
CMYKcmyk(8.8%, 0%, 82.4%, 46.7%)
CIE-LABlab(53.98, -18.40, 53.13)
CIE-LCHlch(53.98, 56.22, 109.10°)
OKLaboklab(59.7% -0.0563 0.1155)
OKLCHoklch(59.7% 0.128 116)
XYZxyz(17.2817, 21.9596, 4.1922)
Luminance0.2196 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8818 #241888
analogous
#885C18 #7C8818 #448818
triadic
#7C8818 #187C88 #88187C
tetradic
#7C8818 #18885C #241888 #881844
square
#7C8818 #18885C #241888 #881844
split-complementary
#7C8818 #184488 #5C1888
monochromatic
#1D2006 #4D540F #7C8818 #ABBC21 #CCDD3E

Accessibility & contrast

On white

3.89
#7C8818 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#7C8818 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8818
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8818#FFFFFF#000000##000000
##7C88181.003.895.395.39
#FFFFFF3.891.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#918223
Tritanopia (blue-blind)
#848074
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7c8818;
/* rgb */ color: rgb(124, 136, 24);
/* oklch */ color: oklch(59.7% 0.128 116.0);
Tailwind
colors: {
  custom: {
    50: '#a5aa61',
    500: '#7c8818',
    950: '#000000',
  },
}
SCSS
$custom: #7c8818;
$custom-light: #a5aa61;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8818",
  "rgb": {
    "r": 124,
    "g": 136,
    "b": 24
  },
  "hsl": {
    "h": 66.429,
    "s": 70,
    "l": 31.373
  },
  "oklch": {
    "l": 0.59703,
    "c": 0.12848,
    "h": 116
  },
  "luminance": 0.21959
}

Semantic roles & 50–950 ramp

primary
#7C8818
secondary
#4D40BC
accent
#3BED4E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7C8818

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

Preview Lab → · Contrast checker → · Palette generator →

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