#7B8F12#7B8F12

#7B8F12 is a mid, vivid yellow. Relative luminance 0.239; OKLCH L 61.3% C 0.139 H 119.3°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#7B8F12
RGBrgb(123, 143, 18)
HSLhsl(70, 78%, 32%)
HSVhsv(70, 87%, 56%)
CMYKcmyk(14%, 0%, 87.4%, 43.9%)
CIE-LABlab(55.99, -22.63, 56.37)
CIE-LCHlch(55.99, 60.74, 111.87°)
OKLaboklab(61.29% -0.0682 0.1215)
OKLCHoklch(61.29% 0.139 119.3)
XYZxyz(18.1004, 23.8997, 4.2317)
Luminance0.2390 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8F12 #26128F
analogous
#8F6512 #7B8F12 #3D8F12
triadic
#7B8F12 #127B8F #8F127B
tetradic
#7B8F12 #128F65 #26128F #8F123D
square
#7B8F12 #128F65 #26128F #8F123D
split-complementary
#7B8F12 #123D8F #65128F
monochromatic
#1D2204 #4C590B #7B8F12 #AAC519 #CAE636

Accessibility & contrast

On white

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

On black

5.78
#7B8F12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8F12
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8F12#FFFFFF#000000##000000
##7B8F121.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#998600
Deuteranopia (green-blind)
#978721
Tritanopia (blue-blind)
#838779
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7b8f12;
/* rgb */ color: rgb(123, 143, 18);
/* oklch */ color: oklch(61.3% 0.139 119.3);
Tailwind
colors: {
  custom: {
    50: '#a5af60',
    500: '#7b8f12',
    950: '#000000',
  },
}
SCSS
$custom: #7b8f12;
$custom-light: #a5af60;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8f12",
  "rgb": {
    "r": 123,
    "g": 143,
    "b": 18
  },
  "hsl": {
    "h": 69.6,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.61288,
    "c": 0.13933,
    "h": 119.3
  },
  "luminance": 0.239
}

Semantic roles & 50–950 ramp

primary
#7B8F12
secondary
#503AC3
accent
#34F452
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7B8F12

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

Preview Lab → · Contrast checker → · Palette generator →

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