#7C8D27#7C8D27

#7C8D27 is a mid, vivid yellow-green. Relative luminance 0.235; OKLCH L 61.0% C 0.126 H 118.6°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#7C8D27
RGBrgb(124, 141, 39)
HSLhsl(70, 57%, 35%)
HSVhsv(70, 72%, 55%)
CMYKcmyk(12.1%, 0%, 72.3%, 44.7%)
CIE-LABlab(55.56, -20.26, 49.49)
CIE-LCHlch(55.56, 53.48, 112.26°)
OKLaboklab(61% -0.0602 0.1105)
OKLCHoklch(61% 0.126 118.6)
XYZxyz(18.2036, 23.4815, 5.4925)
Luminance0.2348 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8D27 #38278D
analogous
#8D6B27 #7C8D27 #498D27
triadic
#7C8D27 #277C8D #8D277C
tetradic
#7C8D27 #278D6B #38278D #8D2749
square
#7C8D27 #278D6B #38278D #8D2749
split-complementary
#7C8D27 #27498D #6B278D
monochromatic
#282D0C #525D1A #7C8D27 #A6BD34 #BED25C

Accessibility & contrast

On white

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

On black

5.70
#7C8D27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8D27
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8D27#FFFFFF#000000##000000
##7C8D271.003.695.705.70
#FFFFFF3.691.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#968515
Deuteranopia (green-blind)
#95862F
Tritanopia (blue-blind)
#848579
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7c8d27;
/* rgb */ color: rgb(124, 141, 39);
/* oklch */ color: oklch(61.0% 0.126 118.6);
Tailwind
colors: {
  custom: {
    50: '#a5ae68',
    500: '#7c8d27',
    950: '#000000',
  },
}
SCSS
$custom: #7c8d27;
$custom-light: #a5ae68;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8d27",
  "rgb": {
    "r": 124,
    "g": 141,
    "b": 39
  },
  "hsl": {
    "h": 70,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.61,
    "c": 0.12581,
    "h": 118.6
  },
  "luminance": 0.23481
}

Semantic roles & 50–950 ramp

primary
#7C8D27
secondary
#6859B7
accent
#48E061
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8D27

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

Preview Lab → · Contrast checker → · Palette generator →

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