#7C8B25#7C8B25

#7C8B25 is a mid, vivid yellow. Relative luminance 0.229; OKLCH L 60.5% C 0.125 H 117.6°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#7C8B25
RGBrgb(124, 139, 37)
HSLhsl(69, 58%, 35%)
HSVhsv(69, 73%, 55%)
CMYKcmyk(10.8%, 0%, 73.4%, 45.5%)
CIE-LABlab(54.95, -19.34, 49.65)
CIE-LCHlch(54.95, 53.29, 111.28°)
OKLaboklab(60.5% -0.0578 0.1105)
OKLCHoklch(60.5% 0.125 117.6)
XYZxyz(17.8791, 22.8841, 5.2251)
Luminance0.2288 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8B25 #34258B
analogous
#8B6725 #7C8B25 #498B25
triadic
#7C8B25 #257C8B #8B257C
tetradic
#7C8B25 #258B67 #34258B #8B2549
square
#7C8B25 #258B67 #34258B #8B2549
split-complementary
#7C8B25 #25498B #67258B
monochromatic
#262A0B #515B18 #7C8B25 #A7BB32 #C0D358

Accessibility & contrast

On white

3.77
#7C8B25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#7C8B25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8B25
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8B25#FFFFFF#000000##000000
##7C8B251.003.775.585.58
#FFFFFF3.771.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#958312
Deuteranopia (green-blind)
#93842D
Tritanopia (blue-blind)
#848377
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7c8b25;
/* rgb */ color: rgb(124, 139, 37);
/* oklch */ color: oklch(60.5% 0.125 117.6);
Tailwind
colors: {
  custom: {
    50: '#a5ac67',
    500: '#7c8b25',
    950: '#000000',
  },
}
SCSS
$custom: #7c8b25;
$custom-light: #a5ac67;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8b25",
  "rgb": {
    "r": 124,
    "g": 139,
    "b": 37
  },
  "hsl": {
    "h": 68.824,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.60504,
    "c": 0.1247,
    "h": 117.6
  },
  "luminance": 0.22884
}

Semantic roles & 50–950 ramp

primary
#7C8B25
secondary
#6355B7
accent
#47E15D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8B25

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

Preview Lab → · Contrast checker → · Palette generator →

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