#7D8D23#7D8D23

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

Color values

HEX#7D8D23
RGBrgb(125, 141, 35)
HSLhsl(69, 60%, 35%)
HSVhsv(69, 75%, 55%)
CMYKcmyk(11.3%, 0%, 75.2%, 44.7%)
CIE-LABlab(55.62, -20.04, 51.06)
CIE-LCHlch(55.62, 54.85, 111.43°)
OKLaboklab(61.05% -0.06 0.1131)
OKLCHoklch(61.05% 0.128 118)
XYZxyz(18.2861, 23.5313, 5.1685)
Luminance0.2353 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8D23 #33238D
analogous
#8D6823 #7D8D23 #488D23
triadic
#7D8D23 #237D8D #8D237D
tetradic
#7D8D23 #238D68 #33238D #8D2348
square
#7D8D23 #238D68 #33238D #8D2348
split-complementary
#7D8D23 #23488D #68238D
monochromatic
#262B0B #525C17 #7D8D23 #A8BE2F #C2D555

Accessibility & contrast

On white

3.68
#7D8D23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#7D8D23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8D23
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8D23#FFFFFF#000000##000000
##7D8D231.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#97850D
Deuteranopia (green-blind)
#95862C
Tritanopia (blue-blind)
#858579
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7d8d23;
/* rgb */ color: rgb(125, 141, 35);
/* oklch */ color: oklch(61.1% 0.128 118.0);
Tailwind
colors: {
  custom: {
    50: '#a6ae66',
    500: '#7d8d23',
    950: '#000000',
  },
}
SCSS
$custom: #7d8d23;
$custom-light: #a6ae66;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8d23",
  "rgb": {
    "r": 125,
    "g": 141,
    "b": 35
  },
  "hsl": {
    "h": 69.057,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.61052,
    "c": 0.12799,
    "h": 118
  },
  "luminance": 0.23531
}

Semantic roles & 50–950 ramp

primary
#7D8D23
secondary
#6253B9
accent
#44E35C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7D8D23

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

Preview Lab → · Contrast checker → · Palette generator →

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