#7E8E2B#7E8E2B

#7E8E2B is a mid, vivid yellow. Relative luminance 0.240; OKLCH L 61.4% C 0.123 H 118.1°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#7E8E2B
RGBrgb(126, 142, 43)
HSLhsl(70, 54%, 36%)
HSVhsv(70, 70%, 56%)
CMYKcmyk(11.3%, 0%, 69.7%, 44.3%)
CIE-LABlab(56.04, -19.66, 48.43)
CIE-LCHlch(56.04, 52.27, 112.09°)
OKLaboklab(61.43% -0.0582 0.1089)
OKLCHoklch(61.43% 0.123 118.1)
XYZxyz(18.7136, 23.9562, 5.9232)
Luminance0.2396 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8E2B #3B2B8E
analogous
#8E6D2B #7E8E2B #4D8E2B
triadic
#7E8E2B #2B7E8E #8E2B7E
tetradic
#7E8E2B #2B8E6D #3B2B8E #8E2B4D
square
#7E8E2B #2B8E6D #3B2B8E #8E2B4D
split-complementary
#7E8E2B #2B4D8E #6D2B8E
monochromatic
#2B300F #545F1D #7E8E2B #A8BD39 #BED063

Accessibility & contrast

On white

3.63
#7E8E2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#7E8E2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8E2B
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8E2B#FFFFFF#000000##000000
##7E8E2B1.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#97861C
Deuteranopia (green-blind)
#968733
Tritanopia (blue-blind)
#86867A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7e8e2b;
/* rgb */ color: rgb(126, 142, 43);
/* oklch */ color: oklch(61.4% 0.123 118.1);
Tailwind
colors: {
  custom: {
    50: '#a6af6b',
    500: '#7e8e2b',
    950: '#000000',
  },
}
SCSS
$custom: #7e8e2b;
$custom-light: #a6af6b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8e2b",
  "rgb": {
    "r": 126,
    "g": 142,
    "b": 43
  },
  "hsl": {
    "h": 69.697,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.61433,
    "c": 0.12347,
    "h": 118.1
  },
  "luminance": 0.23956
}

Semantic roles & 50–950 ramp

primary
#7E8E2B
secondary
#6D5FB6
accent
#4BDD62
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7E8E2B

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

Preview Lab → · Contrast checker → · Palette generator →

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