#7C8D20#7C8D20

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

Color values

HEX#7C8D20
RGBrgb(124, 141, 32)
HSLhsl(69, 63%, 34%)
HSVhsv(69, 77%, 55%)
CMYKcmyk(12.1%, 0%, 77.3%, 44.7%)
CIE-LABlab(55.52, -20.63, 52.00)
CIE-LCHlch(55.52, 55.94, 111.64°)
OKLaboklab(60.95% -0.0618 0.1145)
OKLCHoklch(60.95% 0.13 118.4)
XYZxyz(18.0982, 23.4393, 4.9370)
Luminance0.2344 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8D20 #31208D
analogous
#8D6820 #7C8D20 #468D20
triadic
#7C8D20 #207C8D #8D207C
tetradic
#7C8D20 #208D68 #31208D #8D2046
square
#7C8D20 #208D68 #31208D #8D2046
split-complementary
#7C8D20 #20468D #68208D
monochromatic
#242909 #505B15 #7C8D20 #A8BF2B #C2D750

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C8D20#FFFFFF#000000##000000
##7C8D201.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)
#978505
Deuteranopia (green-blind)
#95852A
Tritanopia (blue-blind)
#848578
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7c8d20;
/* rgb */ color: rgb(124, 141, 32);
/* oklch */ color: oklch(61.0% 0.130 118.4);
Tailwind
colors: {
  custom: {
    50: '#a5ae65',
    500: '#7c8d20',
    950: '#000000',
  },
}
SCSS
$custom: #7c8d20;
$custom-light: #a5ae65;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8d20",
  "rgb": {
    "r": 124,
    "g": 141,
    "b": 32
  },
  "hsl": {
    "h": 69.358,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.60952,
    "c": 0.13015,
    "h": 118.4
  },
  "luminance": 0.23439
}

Semantic roles & 50–950 ramp

primary
#7C8D20
secondary
#5F4EBA
accent
#42E65B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8D20

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

Preview Lab → · Contrast checker → · Palette generator →

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