#7B7E12#7B7E12

#7B7E12 is a mid, vivid yellow. Relative luminance 0.192; OKLCH L 57.2% C 0.120 H 111.4°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#7B7E12
RGBrgb(123, 126, 18)
HSLhsl(62, 75%, 28%)
HSVhsv(62, 86%, 49%)
CMYKcmyk(2.4%, 0%, 85.7%, 50.6%)
CIE-LABlab(50.89, -13.77, 52.08)
CIE-LCHlch(50.89, 53.87, 104.81°)
OKLaboklab(57.2% -0.0439 0.1122)
OKLCHoklch(57.2% 0.12 111.4)
XYZxyz(15.7390, 19.1768, 3.4446)
Luminance0.1918 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B7E12 #15127E
analogous
#7E4B12 #7B7E12 #457E12
triadic
#7B7E12 #127B7E #7E127B
tetradic
#7B7E12 #127E4B #15127E #7E1245
square
#7B7E12 #127E4B #15127E #7E1245
split-complementary
#7B7E12 #12457E #4B127E
monochromatic
#1A1B04 #47480A #7B7E12 #AFB41A #DBE12A

Accessibility & contrast

On white

4.34
#7B7E12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#7B7E12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B7E12
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B7E12#FFFFFF#000000##000000
##7B7E121.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#897A1D
Tritanopia (blue-blind)
#84766B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7b7e12;
/* rgb */ color: rgb(123, 126, 18);
/* oklch */ color: oklch(57.2% 0.120 111.4);
Tailwind
colors: {
  custom: {
    50: '#a5a35d',
    500: '#7b7e12',
    950: '#000000',
  },
}
SCSS
$custom: #7b7e12;
$custom-light: #a5a35d;
$custom-dark: #000000;
JSON
{
  "hex": "#7b7e12",
  "rgb": {
    "r": 123,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 61.667,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.57196,
    "c": 0.12046,
    "h": 111.4
  },
  "luminance": 0.19176
}

Semantic roles & 50–950 ramp

primary
#7B7E12
secondary
#3B38B4
accent
#36F23B
background
#FAFAF5
surface
#F4F3E9
border
#CECDC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7B7E12

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

Preview Lab → · Contrast checker → · Palette generator →

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