#7C7E12#7C7E12

#7C7E12 is a mid, vivid yellow. Relative luminance 0.193; OKLCH L 57.3% C 0.120 H 110.8°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#7C7E12
RGBrgb(124, 126, 18)
HSLhsl(61, 75%, 28%)
HSVhsv(61, 86%, 49%)
CMYKcmyk(1.6%, 0%, 85.7%, 50.6%)
CIE-LABlab(50.98, -13.30, 52.19)
CIE-LCHlch(50.98, 53.86, 104.30°)
OKLaboklab(57.29% -0.0427 0.1124)
OKLCHoklch(57.29% 0.12 110.8)
XYZxyz(15.8828, 19.2509, 3.4513)
Luminance0.1925 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C7E12 #14127E
analogous
#7E4A12 #7C7E12 #467E12
triadic
#7C7E12 #127C7E #7E127C
tetradic
#7C7E12 #127E4A #14127E #7E1246
square
#7C7E12 #127E4A #14127E #7E1246
split-complementary
#7C7E12 #12467E #4A127E
monochromatic
#1A1B04 #47480A #7C7E12 #B1B41A #DDE12A

Accessibility & contrast

On white

4.33
#7C7E12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#7C7E12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C7E12
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C7E12#FFFFFF#000000##000000
##7C7E121.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#8A7B1D
Tritanopia (blue-blind)
#85756B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7c7e12;
/* rgb */ color: rgb(124, 126, 18);
/* oklch */ color: oklch(57.3% 0.120 110.8);
Tailwind
colors: {
  custom: {
    50: '#a5a35d',
    500: '#7c7e12',
    950: '#000000',
  },
}
SCSS
$custom: #7c7e12;
$custom-light: #a5a35d;
$custom-dark: #000000;
JSON
{
  "hex": "#7c7e12",
  "rgb": {
    "r": 124,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 61.111,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.57286,
    "c": 0.12019,
    "h": 110.8
  },
  "luminance": 0.1925
}

Semantic roles & 50–950 ramp

primary
#7C7E12
secondary
#3A38B4
accent
#36F23A
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #7C7E12

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

Preview Lab → · Contrast checker → · Palette generator →

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