#7C8D22#7C8D22

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

Color values

HEX#7C8D22
RGBrgb(124, 141, 34)
HSLhsl(70, 61%, 34%)
HSVhsv(70, 76%, 55%)
CMYKcmyk(12.1%, 0%, 75.9%, 44.7%)
CIE-LABlab(55.53, -20.53, 51.31)
CIE-LCHlch(55.53, 55.27, 111.81°)
OKLaboklab(60.97% -0.0614 0.1135)
OKLCHoklch(60.97% 0.129 118.4)
XYZxyz(18.1262, 23.4505, 5.0846)
Luminance0.2345 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8D22 #33228D
analogous
#8D6922 #7C8D22 #478D22
triadic
#7C8D22 #227C8D #8D227C
tetradic
#7C8D22 #228D69 #33228D #8D2247
square
#7C8D22 #228D69 #33228D #8D2247
split-complementary
#7C8D22 #22478D #69228D
monochromatic
#252A0A #515C16 #7C8D22 #A7BE2E #C1D654

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C8D22#FFFFFF#000000##000000
##7C8D221.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)
#97850B
Deuteranopia (green-blind)
#95852B
Tritanopia (blue-blind)
#848579
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7c8d22;
/* rgb */ color: rgb(124, 141, 34);
/* oklch */ color: oklch(61.0% 0.129 118.4);
Tailwind
colors: {
  custom: {
    50: '#a5ae66',
    500: '#7c8d22',
    950: '#000000',
  },
}
SCSS
$custom: #7c8d22;
$custom-light: #a5ae66;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8d22",
  "rgb": {
    "r": 124,
    "g": 141,
    "b": 34
  },
  "hsl": {
    "h": 69.533,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.60965,
    "c": 0.12899,
    "h": 118.4
  },
  "luminance": 0.2345
}

Semantic roles & 50–950 ramp

primary
#7C8D22
secondary
#6251B9
accent
#44E45D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8D22

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

Preview Lab → · Contrast checker → · Palette generator →

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