#7C8F1C#7C8F1C

#7C8F1C is a mid, vivid yellow. Relative luminance 0.240; OKLCH L 61.4% C 0.135 H 119.1°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#7C8F1C
RGBrgb(124, 143, 28)
HSLhsl(70, 67%, 34%)
HSVhsv(70, 80%, 56%)
CMYKcmyk(13.3%, 0%, 80.4%, 43.9%)
CIE-LABlab(56.10, -21.83, 53.82)
CIE-LCHlch(56.10, 58.08, 112.08°)
OKLaboklab(61.41% -0.0654 0.1177)
OKLCHoklch(61.41% 0.135 119.1)
XYZxyz(18.3446, 24.0140, 4.7671)
Luminance0.2401 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8F1C #2F1C8F
analogous
#8F681C #7C8F1C #428F1C
triadic
#7C8F1C #1C7C8F #8F1C7C
tetradic
#7C8F1C #1C8F68 #2F1C8F #8F1C42
square
#7C8F1C #1C8F68 #2F1C8F #8F1C42
split-complementary
#7C8F1C #1C428F #681C8F
monochromatic
#232908 #505C12 #7C8F1C #A8C226 #C3DC4A

Accessibility & contrast

On white

3.62
#7C8F1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#7C8F1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8F1C
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8F1C#FFFFFF#000000##000000
##7C8F1C1.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#998600
Deuteranopia (green-blind)
#978727
Tritanopia (blue-blind)
#84877A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7c8f1c;
/* rgb */ color: rgb(124, 143, 28);
/* oklch */ color: oklch(61.4% 0.135 119.1);
Tailwind
colors: {
  custom: {
    50: '#a5af63',
    500: '#7c8f1c',
    950: '#000000',
  },
}
SCSS
$custom: #7c8f1c;
$custom-light: #a5af63;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8f1c",
  "rgb": {
    "r": 124,
    "g": 143,
    "b": 28
  },
  "hsl": {
    "h": 69.913,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.61412,
    "c": 0.13466,
    "h": 119.1
  },
  "luminance": 0.24014
}

Semantic roles & 50–950 ramp

primary
#7C8F1C
secondary
#5C49BE
accent
#3EEA5A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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