#7C8D1C#7C8D1C

#7C8D1C is a mid, vivid yellow. Relative luminance 0.234; OKLCH L 60.9% C 0.132 H 118.3°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#7C8D1C
RGBrgb(124, 141, 28)
HSLhsl(69, 67%, 33%)
HSVhsv(69, 80%, 55%)
CMYKcmyk(12.1%, 0%, 80.1%, 44.7%)
CIE-LABlab(55.50, -20.81, 53.28)
CIE-LCHlch(55.50, 57.20, 111.34°)
OKLaboklab(60.93% -0.0626 0.1165)
OKLCHoklch(60.93% 0.132 118.3)
XYZxyz(18.0471, 23.4188, 4.6679)
Luminance0.2342 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8D1C #2D1C8D
analogous
#8D661C #7C8D1C #438D1C
triadic
#7C8D1C #1C7C8D #8D1C7C
tetradic
#7C8D1C #1C8D66 #2D1C8D #8D1C43
square
#7C8D1C #1C8D66 #2D1C8D #8D1C43
split-complementary
#7C8D1C #1C438D #661C8D
monochromatic
#222708 #4F5A12 #7C8D1C #A9C026 #C5DB49

Accessibility & contrast

On white

3.69
#7C8D1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#7C8D1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8D1C
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8D1C#FFFFFF#000000##000000
##7C8D1C1.003.695.685.68
#FFFFFF3.691.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#958527
Tritanopia (blue-blind)
#848578
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7c8d1c;
/* rgb */ color: rgb(124, 141, 28);
/* oklch */ color: oklch(60.9% 0.132 118.3);
Tailwind
colors: {
  custom: {
    50: '#a5ae63',
    500: '#7c8d1c',
    950: '#000000',
  },
}
SCSS
$custom: #7c8d1c;
$custom-light: #a5ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8d1c",
  "rgb": {
    "r": 124,
    "g": 141,
    "b": 28
  },
  "hsl": {
    "h": 69.027,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.60929,
    "c": 0.1323,
    "h": 118.3
  },
  "luminance": 0.23419
}

Semantic roles & 50–950 ramp

primary
#7C8D1C
secondary
#5A48BD
accent
#3EEA58
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8D1C

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

Preview Lab → · Contrast checker → · Palette generator →

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