#7B8018#7B8018

#7B8018 is a mid, moderate yellow. Relative luminance 0.197; OKLCH L 57.7% C 0.120 H 112.5°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#7B8018
RGBrgb(123, 128, 24)
HSLhsl(63, 68%, 30%)
HSVhsv(63, 81%, 50%)
CMYKcmyk(3.9%, 0%, 81.3%, 49.8%)
CIE-LABlab(51.51, -14.63, 50.91)
CIE-LCHlch(51.51, 52.97, 106.03°)
OKLaboklab(57.7% -0.0459 0.1108)
OKLCHoklch(57.7% 0.12 112.5)
XYZxyz(16.0530, 19.7156, 3.8238)
Luminance0.1971 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8018 #1D1880
analogous
#805118 #7B8018 #478018
triadic
#7B8018 #187B80 #80187B
tetradic
#7B8018 #188051 #1D1880 #801847
square
#7B8018 #188051 #1D1880 #801847
split-complementary
#7B8018 #184780 #511880
monochromatic
#191A05 #494C0E #7B8018 #ADB422 #D2DA39

Accessibility & contrast

On white

4.25
#7B8018 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#7B8018 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8018
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8018#FFFFFF#000000##000000
##7B80181.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A00
Deuteranopia (green-blind)
#8B7C22
Tritanopia (blue-blind)
#84786D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7b8018;
/* rgb */ color: rgb(123, 128, 24);
/* oklch */ color: oklch(57.7% 0.120 112.5);
Tailwind
colors: {
  custom: {
    50: '#a4a45f',
    500: '#7b8018',
    950: '#000000',
  },
}
SCSS
$custom: #7b8018;
$custom-light: #a4a45f;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8018",
  "rgb": {
    "r": 123,
    "g": 128,
    "b": 24
  },
  "hsl": {
    "h": 62.885,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.57701,
    "c": 0.11989,
    "h": 112.5
  },
  "luminance": 0.19715
}

Semantic roles & 50–950 ramp

primary
#7B8018
secondary
#4540B4
accent
#3DEB45
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7B8018

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

Preview Lab → · Contrast checker → · Palette generator →

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