#7C8F1A#7C8F1A

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

Color values

HEX#7C8F1A
RGBrgb(124, 143, 26)
HSLhsl(70, 69%, 33%)
HSVhsv(70, 82%, 56%)
CMYKcmyk(13.3%, 0%, 81.8%, 43.9%)
CIE-LABlab(56.09, -21.91, 54.41)
CIE-LCHlch(56.09, 58.66, 111.93°)
OKLaboklab(61.4% -0.0658 0.1186)
OKLCHoklch(61.4% 0.136 119)
XYZxyz(18.3215, 24.0047, 4.6453)
Luminance0.2401 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8F1A #2D1A8F
analogous
#8F681A #7C8F1A #418F1A
triadic
#7C8F1A #1A7C8F #8F1A7C
tetradic
#7C8F1A #1A8F68 #2D1A8F #8F1A41
square
#7C8F1A #1A8F68 #2D1A8F #8F1A41
split-complementary
#7C8F1A #1A418F #681A8F
monochromatic
#222707 #4F5B11 #7C8F1A #A9C323 #C5DD46

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C8F1A#FFFFFF#000000##000000
##7C8F1A1.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)
#978726
Tritanopia (blue-blind)
#84877A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7c8f1a;
/* rgb */ color: rgb(124, 143, 26);
/* oklch */ color: oklch(61.4% 0.136 119.0);
Tailwind
colors: {
  custom: {
    50: '#a5af62',
    500: '#7c8f1a',
    950: '#000000',
  },
}
SCSS
$custom: #7c8f1a;
$custom-light: #a5af62;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8f1a",
  "rgb": {
    "r": 124,
    "g": 143,
    "b": 26
  },
  "hsl": {
    "h": 69.744,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.61402,
    "c": 0.13563,
    "h": 119
  },
  "luminance": 0.24005
}

Semantic roles & 50–950 ramp

primary
#7C8F1A
secondary
#5A46BF
accent
#3CEC58
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8F1A

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

Preview Lab → · Contrast checker → · Palette generator →

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