#7C8A21#7C8A21

#7C8A21 is a mid, vivid yellow. Relative luminance 0.226; OKLCH L 60.2% C 0.126 H 117.1°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#7C8A21
RGBrgb(124, 138, 33)
HSLhsl(68, 61%, 34%)
HSVhsv(68, 76%, 54%)
CMYKcmyk(10.1%, 0%, 76.1%, 45.9%)
CIE-LABlab(54.63, -19.04, 50.81)
CIE-LCHlch(54.63, 54.26, 110.54°)
OKLaboklab(60.24% -0.0573 0.1122)
OKLCHoklch(60.24% 0.126 117.1)
XYZxyz(17.6756, 22.5721, 4.8642)
Luminance0.2257 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8A21 #2F218A
analogous
#8A6321 #7C8A21 #478A21
triadic
#7C8A21 #217C8A #8A217C
tetradic
#7C8A21 #218A63 #2F218A #8A2147
square
#7C8A21 #218A63 #2F218A #8A2147
split-complementary
#7C8A21 #21478A #63218A
monochromatic
#232709 #505915 #7C8A21 #A8BB2D #C3D550

Accessibility & contrast

On white

3.81
#7C8A21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#7C8A21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8A21
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8A21#FFFFFF#000000##000000
##7C8A211.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#94820A
Deuteranopia (green-blind)
#92832A
Tritanopia (blue-blind)
#848276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7c8a21;
/* rgb */ color: rgb(124, 138, 33);
/* oklch */ color: oklch(60.2% 0.126 117.1);
Tailwind
colors: {
  custom: {
    50: '#a5ac65',
    500: '#7c8a21',
    950: '#000000',
  },
}
SCSS
$custom: #7c8a21;
$custom-light: #a5ac65;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8a21",
  "rgb": {
    "r": 124,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 68,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.60235,
    "c": 0.12601,
    "h": 117.1
  },
  "luminance": 0.22572
}

Semantic roles & 50–950 ramp

primary
#7C8A21
secondary
#5C4EB9
accent
#43E559
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8A21

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

Preview Lab → · Contrast checker → · Palette generator →

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