#7C8B23#7C8B23

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

Color values

HEX#7C8B23
RGBrgb(124, 139, 35)
HSLhsl(69, 60%, 34%)
HSVhsv(69, 75%, 55%)
CMYKcmyk(10.8%, 0%, 74.8%, 45.5%)
CIE-LABlab(54.94, -19.45, 50.39)
CIE-LCHlch(54.94, 54.01, 111.11°)
OKLaboklab(60.49% -0.0583 0.1117)
OKLCHoklch(60.49% 0.126 117.6)
XYZxyz(17.8486, 22.8719, 5.0642)
Luminance0.2287 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8B23 #32238B
analogous
#8B6623 #7C8B23 #488B23
triadic
#7C8B23 #237C8B #8B237C
tetradic
#7C8B23 #238B66 #32238B #8B2348
square
#7C8B23 #238B66 #32238B #8B2348
split-complementary
#7C8B23 #23488B #66238B
monochromatic
#25290A #505A17 #7C8B23 #A8BC2F #C2D454

Accessibility & contrast

On white

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

On black

5.57
#7C8B23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8B23
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8B23#FFFFFF#000000##000000
##7C8B231.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#95830E
Deuteranopia (green-blind)
#93842C
Tritanopia (blue-blind)
#848377
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7c8b23;
/* rgb */ color: rgb(124, 139, 35);
/* oklch */ color: oklch(60.5% 0.126 117.6);
Tailwind
colors: {
  custom: {
    50: '#a5ac66',
    500: '#7c8b23',
    950: '#000000',
  },
}
SCSS
$custom: #7c8b23;
$custom-light: #a5ac66;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8b23",
  "rgb": {
    "r": 124,
    "g": 139,
    "b": 35
  },
  "hsl": {
    "h": 68.654,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.6049,
    "c": 0.12597,
    "h": 117.6
  },
  "luminance": 0.22872
}

Semantic roles & 50–950 ramp

primary
#7C8B23
secondary
#6152B8
accent
#45E35C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8B23

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

Preview Lab → · Contrast checker → · Palette generator →

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