#7C8D21#7C8D21

#7C8D21 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#7C8D21
RGBrgb(124, 141, 33)
HSLhsl(69, 62%, 34%)
HSVhsv(69, 77%, 55%)
CMYKcmyk(12.1%, 0%, 76.6%, 44.7%)
CIE-LABlab(55.53, -20.58, 51.66)
CIE-LCHlch(55.53, 55.61, 111.72°)
OKLaboklab(60.96% -0.0616 0.114)
OKLCHoklch(60.96% 0.13 118.4)
XYZxyz(18.1120, 23.4448, 5.0097)
Luminance0.2344 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8D21 #32218D
analogous
#8D6821 #7C8D21 #468D21
triadic
#7C8D21 #217C8D #8D217C
tetradic
#7C8D21 #218D68 #32218D #8D2146
square
#7C8D21 #218D68 #32218D #8D2146
split-complementary
#7C8D21 #21468D #68218D
monochromatic
#252A0A #505B15 #7C8D21 #A8BF2D #C2D652

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #7c8d21;
/* rgb */ color: rgb(124, 141, 33);
/* oklch */ color: oklch(61.0% 0.130 118.4);
Tailwind
colors: {
  custom: {
    50: '#a5ae65',
    500: '#7c8d21',
    950: '#000000',
  },
}
SCSS
$custom: #7c8d21;
$custom-light: #a5ae65;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8d21",
  "rgb": {
    "r": 124,
    "g": 141,
    "b": 33
  },
  "hsl": {
    "h": 69.444,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.60958,
    "c": 0.12958,
    "h": 118.4
  },
  "luminance": 0.23445
}

Semantic roles & 50–950 ramp

primary
#7C8D21
secondary
#6150BA
accent
#43E55C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8D21

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

Preview Lab → · Contrast checker → · Palette generator →

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