#838C12#838C12

#838C12 is a mid, vivid yellow. Relative luminance 0.236; OKLCH L 61.2% C 0.133 H 114.3°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#838C12
RGBrgb(131, 140, 18)
HSLhsl(64, 77%, 31%)
HSVhsv(64, 87%, 55%)
CMYKcmyk(6.4%, 0%, 87.1%, 45.1%)
CIE-LABlab(55.71, -17.53, 56.39)
CIE-LCHlch(55.71, 59.05, 107.27°)
OKLaboklab(61.22% -0.0547 0.1212)
OKLCHoklch(61.22% 0.133 114.3)
XYZxyz(18.8480, 23.6255, 4.1395)
Luminance0.2362 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838C12 #1B128C
analogous
#8C5812 #838C12 #468C12
triadic
#838C12 #12838C #8C1283
tetradic
#838C12 #128C58 #1B128C #8C1246
square
#838C12 #128C58 #1B128C #8C1246
split-complementary
#838C12 #12468C #58128C
monochromatic
#1E2004 #50560B #838C12 #B6C219 #D8E534

Accessibility & contrast

On white

3.67
#838C12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#838C12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838C12
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838C12#FFFFFF#000000##000000
##838C121.003.675.735.73
#FFFFFF3.671.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#978620
Tritanopia (blue-blind)
#8C8377
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #838c12;
/* rgb */ color: rgb(131, 140, 18);
/* oklch */ color: oklch(61.2% 0.133 114.3);
Tailwind
colors: {
  custom: {
    50: '#abad5f',
    500: '#838c12',
    950: '#000000',
  },
}
SCSS
$custom: #838c12;
$custom-light: #abad5f;
$custom-dark: #000000;
JSON
{
  "hex": "#838c12",
  "rgb": {
    "r": 131,
    "g": 140,
    "b": 18
  },
  "hsl": {
    "h": 64.426,
    "s": 77.215,
    "l": 30.98
  },
  "oklch": {
    "l": 0.61221,
    "c": 0.13293,
    "h": 114.3
  },
  "luminance": 0.23625
}

Semantic roles & 50–950 ramp

primary
#838C12
secondary
#4339C0
accent
#34F442
background
#FAFAF5
surface
#F5F4EA
border
#CFCEC6
text
#111005
muted
#807F79

Preview Lab

Preview with #838C12

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

Preview Lab → · Contrast checker → · Palette generator →

#838C12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva