#7C8D23#7C8D23

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

Color values

HEX#7C8D23
RGBrgb(124, 141, 35)
HSLhsl(70, 60%, 35%)
HSVhsv(70, 75%, 55%)
CMYKcmyk(12.1%, 0%, 75.2%, 44.7%)
CIE-LABlab(55.54, -20.48, 50.96)
CIE-LCHlch(55.54, 54.92, 111.89°)
OKLaboklab(60.97% -0.0611 0.1129)
OKLCHoklch(60.97% 0.128 118.4)
XYZxyz(18.1408, 23.4563, 5.1616)
Luminance0.2346 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8D23 #34238D
analogous
#8D6923 #7C8D23 #478D23
triadic
#7C8D23 #237C8D #8D237C
tetradic
#7C8D23 #238D69 #34238D #8D2347
square
#7C8D23 #238D69 #34238D #8D2347
split-complementary
#7C8D23 #23478D #69238D
monochromatic
#262B0B #515C17 #7C8D23 #A7BE2F #C0D555

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C8D23#FFFFFF#000000##000000
##7C8D231.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)
#97850D
Deuteranopia (green-blind)
#95852C
Tritanopia (blue-blind)
#848579
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7c8d23;
/* rgb */ color: rgb(124, 141, 35);
/* oklch */ color: oklch(61.0% 0.128 118.4);
Tailwind
colors: {
  custom: {
    50: '#a5ae66',
    500: '#7c8d23',
    950: '#000000',
  },
}
SCSS
$custom: #7c8d23;
$custom-light: #a5ae66;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8d23",
  "rgb": {
    "r": 124,
    "g": 141,
    "b": 35
  },
  "hsl": {
    "h": 69.623,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.60972,
    "c": 0.12838,
    "h": 118.4
  },
  "luminance": 0.23456
}

Semantic roles & 50–950 ramp

primary
#7C8D23
secondary
#6353B9
accent
#44E35E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8D23

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

Preview Lab → · Contrast checker → · Palette generator →

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