#7C8A25#7C8A25

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

Color values

HEX#7C8A25
RGBrgb(124, 138, 37)
HSLhsl(68, 58%, 34%)
HSVhsv(68, 73%, 54%)
CMYKcmyk(10.1%, 0%, 73.2%, 45.9%)
CIE-LABlab(54.65, -18.83, 49.36)
CIE-LCHlch(54.65, 52.83, 110.88°)
OKLaboklab(60.26% -0.0564 0.1099)
OKLCHoklch(60.26% 0.123 117.2)
XYZxyz(17.7350, 22.5958, 5.1771)
Luminance0.2260 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8A25 #33258A
analogous
#8A6625 #7C8A25 #4A8A25
triadic
#7C8A25 #257C8A #8A257C
tetradic
#7C8A25 #258A66 #33258A #8A254A
square
#7C8A25 #258A66 #33258A #8A254A
split-complementary
#7C8A25 #254A8A #66258A
monochromatic
#25290B #515A18 #7C8A25 #A7BA32 #C1D257

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C8A25#FFFFFF#000000##000000
##7C8A251.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)
#948213
Deuteranopia (green-blind)
#92832D
Tritanopia (blue-blind)
#848276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7c8a25;
/* rgb */ color: rgb(124, 138, 37);
/* oklch */ color: oklch(60.3% 0.123 117.2);
Tailwind
colors: {
  custom: {
    50: '#a5ac67',
    500: '#7c8a25',
    950: '#000000',
  },
}
SCSS
$custom: #7c8a25;
$custom-light: #a5ac67;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8a25",
  "rgb": {
    "r": 124,
    "g": 138,
    "b": 37
  },
  "hsl": {
    "h": 68.317,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.60263,
    "c": 0.12349,
    "h": 117.2
  },
  "luminance": 0.22596
}

Semantic roles & 50–950 ramp

primary
#7C8A25
secondary
#6254B7
accent
#47E15C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8A25

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

Preview Lab → · Contrast checker → · Palette generator →

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