#7C8218#7C8218

#7C8218 is a mid, vivid yellow. Relative luminance 0.203; OKLCH L 58.3% C 0.122 H 113.0°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#7C8218
RGBrgb(124, 130, 24)
HSLhsl(63, 69%, 30%)
HSVhsv(63, 82%, 51%)
CMYKcmyk(4.6%, 0%, 81.5%, 49%)
CIE-LABlab(52.19, -15.24, 51.54)
CIE-LCHlch(52.19, 53.75, 106.47°)
OKLaboklab(58.27% -0.0476 0.1121)
OKLCHoklch(58.27% 0.122 113)
XYZxyz(16.4602, 20.3167, 3.9184)
Luminance0.2032 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8218 #1E1882
analogous
#825318 #7C8218 #478218
triadic
#7C8218 #187C82 #82187C
tetradic
#7C8218 #188253 #1E1882 #821847
square
#7C8218 #188253 #1E1882 #821847
split-complementary
#7C8218 #184782 #531882
monochromatic
#191B05 #4B4E0E #7C8218 #ADB622 #D1DB3A

Accessibility & contrast

On white

4.15
#7C8218 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#7C8218 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8218
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8218#FFFFFF#000000##000000
##7C82181.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#8C7E22
Tritanopia (blue-blind)
#857A6F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7c8218;
/* rgb */ color: rgb(124, 130, 24);
/* oklch */ color: oklch(58.3% 0.122 113.0);
Tailwind
colors: {
  custom: {
    50: '#a5a660',
    500: '#7c8218',
    950: '#000000',
  },
}
SCSS
$custom: #7c8218;
$custom-light: #a5a660;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8218",
  "rgb": {
    "r": 124,
    "g": 130,
    "b": 24
  },
  "hsl": {
    "h": 63.396,
    "s": 68.831,
    "l": 30.196
  },
  "oklch": {
    "l": 0.58266,
    "c": 0.12178,
    "h": 113
  },
  "luminance": 0.20316
}

Semantic roles & 50–950 ramp

primary
#7C8218
secondary
#4640B6
accent
#3CEC46
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7C8218

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

Preview Lab → · Contrast checker → · Palette generator →

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