#7C8A23#7C8A23

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

Color values

HEX#7C8A23
RGBrgb(124, 138, 35)
HSLhsl(68, 60%, 34%)
HSVhsv(68, 75%, 54%)
CMYKcmyk(10.1%, 0%, 74.6%, 45.9%)
CIE-LABlab(54.64, -18.93, 50.10)
CIE-LCHlch(54.64, 53.56, 110.70°)
OKLaboklab(60.25% -0.0569 0.1111)
OKLCHoklch(60.25% 0.125 117.1)
XYZxyz(17.7045, 22.5836, 5.0162)
Luminance0.2258 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8A23 #31238A
analogous
#8A6523 #7C8A23 #498A23
triadic
#7C8A23 #237C8A #8A237C
tetradic
#7C8A23 #238A65 #31238A #8A2349
square
#7C8A23 #238A65 #31238A #8A2349
split-complementary
#7C8A23 #23498A #65238A
monochromatic
#24280A #505917 #7C8A23 #A8BB2F #C2D454

Accessibility & contrast

On white

3.81
#7C8A23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C8A23#FFFFFF#000000##000000
##7C8A231.003.815.525.52
#FFFFFF3.811.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#94820F
Deuteranopia (green-blind)
#92832C
Tritanopia (blue-blind)
#848276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7c8a23;
/* rgb */ color: rgb(124, 138, 35);
/* oklch */ color: oklch(60.2% 0.125 117.1);
Tailwind
colors: {
  custom: {
    50: '#a5ac66',
    500: '#7c8a23',
    950: '#000000',
  },
}
SCSS
$custom: #7c8a23;
$custom-light: #a5ac66;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8a23",
  "rgb": {
    "r": 124,
    "g": 138,
    "b": 35
  },
  "hsl": {
    "h": 68.155,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.60249,
    "c": 0.12478,
    "h": 117.1
  },
  "luminance": 0.22583
}

Semantic roles & 50–950 ramp

primary
#7C8A23
secondary
#5F51B7
accent
#45E35B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8A23

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

Preview Lab → · Contrast checker → · Palette generator →

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