#7E8D23#7E8D23

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

Color values

HEX#7E8D23
RGBrgb(126, 141, 35)
HSLhsl(68, 60%, 35%)
HSVhsv(68, 75%, 55%)
CMYKcmyk(10.6%, 0%, 75.2%, 44.7%)
CIE-LABlab(55.69, -19.60, 51.16)
CIE-LCHlch(55.69, 54.79, 110.96°)
OKLaboklab(61.13% -0.0588 0.1132)
OKLCHoklch(61.13% 0.128 117.5)
XYZxyz(18.4329, 23.6069, 5.1753)
Luminance0.2361 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8D23 #32238D
analogous
#8D6723 #7E8D23 #498D23
triadic
#7E8D23 #237E8D #8D237E
tetradic
#7E8D23 #238D67 #32238D #8D2349
square
#7E8D23 #238D67 #32238D #8D2349
split-complementary
#7E8D23 #23498D #67238D
monochromatic
#262B0B #525C17 #7E8D23 #AABE2F #C3D555

Accessibility & contrast

On white

3.67
#7E8D23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#7E8D23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8D23
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8D23#FFFFFF#000000##000000
##7E8D231.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e8d23;
/* rgb */ color: rgb(126, 141, 35);
/* oklch */ color: oklch(61.1% 0.128 117.5);
Tailwind
colors: {
  custom: {
    50: '#a6ae66',
    500: '#7e8d23',
    950: '#000000',
  },
}
SCSS
$custom: #7e8d23;
$custom-light: #a6ae66;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8d23",
  "rgb": {
    "r": 126,
    "g": 141,
    "b": 35
  },
  "hsl": {
    "h": 68.491,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.61133,
    "c": 0.12761,
    "h": 117.5
  },
  "luminance": 0.23607
}

Semantic roles & 50–950 ramp

primary
#7E8D23
secondary
#6153B9
accent
#44E35B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8D23

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

Preview Lab → · Contrast checker → · Palette generator →

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