#7C8E1C#7C8E1C

#7C8E1C is a mid, vivid yellow. Relative luminance 0.237; OKLCH L 61.2% C 0.133 H 118.7°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#7C8E1C
RGBrgb(124, 142, 28)
HSLhsl(69, 67%, 33%)
HSVhsv(69, 80%, 56%)
CMYKcmyk(12.7%, 0%, 80.3%, 44.3%)
CIE-LABlab(55.80, -21.32, 53.55)
CIE-LCHlch(55.80, 57.64, 111.71°)
OKLaboklab(61.17% -0.0641 0.1171)
OKLCHoklch(61.17% 0.133 118.7)
XYZxyz(18.1952, 23.7151, 4.7173)
Luminance0.2371 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8E1C #2E1C8E
analogous
#8E671C #7C8E1C #438E1C
triadic
#7C8E1C #1C7C8E #8E1C7C
tetradic
#7C8E1C #1C8E67 #2E1C8E #8E1C43
square
#7C8E1C #1C8E67 #2E1C8E #8E1C43
split-complementary
#7C8E1C #1C438E #671C8E
monochromatic
#232808 #4F5B12 #7C8E1C #A9C126 #C4DB49

Accessibility & contrast

On white

3.66
#7C8E1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#7C8E1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8E1C
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8E1C#FFFFFF#000000##000000
##7C8E1C1.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#968627
Tritanopia (blue-blind)
#848679
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7c8e1c;
/* rgb */ color: rgb(124, 142, 28);
/* oklch */ color: oklch(61.2% 0.133 118.7);
Tailwind
colors: {
  custom: {
    50: '#a5af63',
    500: '#7c8e1c',
    950: '#000000',
  },
}
SCSS
$custom: #7c8e1c;
$custom-light: #a5af63;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8e1c",
  "rgb": {
    "r": 124,
    "g": 142,
    "b": 28
  },
  "hsl": {
    "h": 69.474,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.6117,
    "c": 0.13349,
    "h": 118.7
  },
  "luminance": 0.23715
}

Semantic roles & 50–950 ramp

primary
#7C8E1C
secondary
#5B49BD
accent
#3EEA59
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8E1C

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

Preview Lab → · Contrast checker → · Palette generator →

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