#7C8D1E#7C8D1E

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

Color values

HEX#7C8D1E
RGBrgb(124, 141, 30)
HSLhsl(69, 65%, 34%)
HSVhsv(69, 79%, 55%)
CMYKcmyk(12.1%, 0%, 78.7%, 44.7%)
CIE-LABlab(55.51, -20.72, 52.65)
CIE-LCHlch(55.51, 56.58, 111.49°)
OKLaboklab(60.94% -0.0622 0.1156)
OKLCHoklch(60.94% 0.131 118.3)
XYZxyz(18.0718, 23.4287, 4.7982)
Luminance0.2343 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8D1E #2F1E8D
analogous
#8D661E #7C8D1E #448D1E
triadic
#7C8D1E #1E7C8D #8D1E7C
tetradic
#7C8D1E #1E8D66 #2F1E8D #8D1E44
square
#7C8D1E #1E8D66 #2F1E8D #8D1E44
split-complementary
#7C8D1E #1E448D #661E8D
monochromatic
#232809 #505B13 #7C8D1E #A8BF29 #C3D94C

Accessibility & contrast

On white

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

On black

5.69
#7C8D1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8D1E
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8D1E#FFFFFF#000000##000000
##7C8D1E1.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c8d1e;
/* rgb */ color: rgb(124, 141, 30);
/* oklch */ color: oklch(60.9% 0.131 118.3);
Tailwind
colors: {
  custom: {
    50: '#a5ae64',
    500: '#7c8d1e',
    950: '#000000',
  },
}
SCSS
$custom: #7c8d1e;
$custom-light: #a5ae64;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8d1e",
  "rgb": {
    "r": 124,
    "g": 141,
    "b": 30
  },
  "hsl": {
    "h": 69.189,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.6094,
    "c": 0.13126,
    "h": 118.3
  },
  "luminance": 0.23429
}

Semantic roles & 50–950 ramp

primary
#7C8D1E
secondary
#5C4BBC
accent
#40E85A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8D1E

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

Preview Lab → · Contrast checker → · Palette generator →

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