#7C8D25#7C8D25

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

Color values

HEX#7C8D25
RGBrgb(124, 141, 37)
HSLhsl(70, 58%, 35%)
HSVhsv(70, 74%, 55%)
CMYKcmyk(12.1%, 0%, 73.8%, 44.7%)
CIE-LABlab(55.55, -20.37, 50.24)
CIE-LCHlch(55.55, 54.21, 112.07°)
OKLaboklab(60.99% -0.0607 0.1117)
OKLCHoklch(60.99% 0.127 118.5)
XYZxyz(18.1714, 23.4686, 5.3225)
Luminance0.2347 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8D25 #36258D
analogous
#8D6A25 #7C8D25 #488D25
triadic
#7C8D25 #257C8D #8D257C
tetradic
#7C8D25 #258D6A #36258D #8D2548
square
#7C8D25 #258D6A #36258D #8D2548
split-complementary
#7C8D25 #25488D #6A258D
monochromatic
#272C0C #515D18 #7C8D25 #A7BD32 #BFD359

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C8D25#FFFFFF#000000##000000
##7C8D251.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)
#978512
Deuteranopia (green-blind)
#95852E
Tritanopia (blue-blind)
#848579
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7c8d25;
/* rgb */ color: rgb(124, 141, 37);
/* oklch */ color: oklch(61.0% 0.127 118.5);
Tailwind
colors: {
  custom: {
    50: '#a5ae67',
    500: '#7c8d25',
    950: '#000000',
  },
}
SCSS
$custom: #7c8d25;
$custom-light: #a5ae67;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8d25",
  "rgb": {
    "r": 124,
    "g": 141,
    "b": 37
  },
  "hsl": {
    "h": 69.808,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.60985,
    "c": 0.12713,
    "h": 118.5
  },
  "luminance": 0.23468
}

Semantic roles & 50–950 ramp

primary
#7C8D25
secondary
#6656B8
accent
#46E260
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8D25

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

Preview Lab → · Contrast checker → · Palette generator →

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