#7E8B1C#7E8B1C

#7E8B1C is a mid, vivid yellow. Relative luminance 0.230; OKLCH L 60.6% C 0.129 H 116.4°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#7E8B1C
RGBrgb(126, 139, 28)
HSLhsl(67, 66%, 33%)
HSVhsv(67, 80%, 55%)
CMYKcmyk(9.4%, 0%, 79.9%, 45.5%)
CIE-LABlab(55.06, -18.90, 52.94)
CIE-LCHlch(55.06, 56.21, 109.65°)
OKLaboklab(60.61% -0.0575 0.1157)
OKLCHoklch(60.61% 0.129 116.4)
XYZxyz(18.0469, 22.9850, 4.5842)
Luminance0.2298 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8B1C #291C8B
analogous
#8B601C #7E8B1C #468B1C
triadic
#7E8B1C #1C7E8B #8B1C7E
tetradic
#7E8B1C #1C8B60 #291C8B #8B1C46
square
#7E8B1C #1C8B60 #291C8B #8B1C46
split-complementary
#7E8B1C #1C468B #601C8B
monochromatic
#222507 #505812 #7E8B1C #ACBE26 #C9DA47

Accessibility & contrast

On white

3.75
#7E8B1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#7E8B1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8B1C
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8B1C#FFFFFF#000000##000000
##7E8B1C1.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#948427
Tritanopia (blue-blind)
#868377
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7e8b1c;
/* rgb */ color: rgb(126, 139, 28);
/* oklch */ color: oklch(60.6% 0.129 116.4);
Tailwind
colors: {
  custom: {
    50: '#a7ac63',
    500: '#7e8b1c',
    950: '#000000',
  },
}
SCSS
$custom: #7e8b1c;
$custom-light: #a7ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8b1c",
  "rgb": {
    "r": 126,
    "g": 139,
    "b": 28
  },
  "hsl": {
    "h": 67.027,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.6061,
    "c": 0.12922,
    "h": 116.4
  },
  "luminance": 0.22985
}

Semantic roles & 50–950 ramp

primary
#7E8B1C
secondary
#5547BC
accent
#3EE952
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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