#7C8A27#7C8A27

#7C8A27 is a mid, vivid yellow. Relative luminance 0.226; OKLCH L 60.3% C 0.122 H 117.2°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#7C8A27
RGBrgb(124, 138, 39)
HSLhsl(68, 56%, 35%)
HSVhsv(68, 72%, 54%)
CMYKcmyk(10.1%, 0%, 71.7%, 45.9%)
CIE-LABlab(54.67, -18.71, 48.60)
CIE-LCHlch(54.67, 52.08, 111.06°)
OKLaboklab(60.28% -0.0559 0.1086)
OKLCHoklch(60.28% 0.122 117.2)
XYZxyz(17.7673, 22.6087, 5.3470)
Luminance0.2261 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8A27 #35278A
analogous
#8A6727 #7C8A27 #4B8A27
triadic
#7C8A27 #277C8A #8A277C
tetradic
#7C8A27 #278A67 #35278A #8A274B
square
#7C8A27 #278A67 #35278A #8A274B
split-complementary
#7C8A27 #274B8A #67278A
monochromatic
#262B0C #515A1A #7C8A27 #A7BA34 #C0D15B

Accessibility & contrast

On white

3.80
#7C8A27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#7C8A27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8A27
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8A27#FFFFFF#000000##000000
##7C8A271.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#948217
Deuteranopia (green-blind)
#92832F
Tritanopia (blue-blind)
#848277
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7c8a27;
/* rgb */ color: rgb(124, 138, 39);
/* oklch */ color: oklch(60.3% 0.122 117.2);
Tailwind
colors: {
  custom: {
    50: '#a5ac68',
    500: '#7c8a27',
    950: '#000000',
  },
}
SCSS
$custom: #7c8a27;
$custom-light: #a5ac68;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8a27",
  "rgb": {
    "r": 124,
    "g": 138,
    "b": 39
  },
  "hsl": {
    "h": 68.485,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.60278,
    "c": 0.12214,
    "h": 117.2
  },
  "luminance": 0.22609
}

Semantic roles & 50–950 ramp

primary
#7C8A27
secondary
#6557B6
accent
#49DF5E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8A27

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

Preview Lab → · Contrast checker → · Palette generator →

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