#838E12#838E12

#838E12 is a mid, vivid yellow. Relative luminance 0.242; OKLCH L 61.7% C 0.135 H 115.2°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#838E12
RGBrgb(131, 142, 18)
HSLhsl(65, 78%, 31%)
HSVhsv(65, 87%, 56%)
CMYKcmyk(7.7%, 0%, 87.3%, 44.3%)
CIE-LABlab(56.30, -18.57, 56.88)
CIE-LCHlch(56.30, 59.83, 108.08°)
OKLaboklab(61.7% -0.0575 0.1222)
OKLCHoklch(61.7% 0.135 115.2)
XYZxyz(19.1429, 24.2153, 4.2378)
Luminance0.2422 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838E12 #1D128E
analogous
#8E5B12 #838E12 #458E12
triadic
#838E12 #12838E #8E1283
tetradic
#838E12 #128E5B #1D128E #8E1245
square
#838E12 #128E5B #1D128E #8E1245
split-complementary
#838E12 #12458E #5B128E
monochromatic
#1F2104 #51580B #838E12 #B5C419 #D6E535

Accessibility & contrast

On white

3.59
#838E12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.84
#838E12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838E12
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838E12#FFFFFF#000000##000000
##838E121.003.595.845.84
#FFFFFF3.591.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#998600
Deuteranopia (green-blind)
#988820
Tritanopia (blue-blind)
#8C8579
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #838e12;
/* rgb */ color: rgb(131, 142, 18);
/* oklch */ color: oklch(61.7% 0.135 115.2);
Tailwind
colors: {
  custom: {
    50: '#abae60',
    500: '#838e12',
    950: '#000000',
  },
}
SCSS
$custom: #838e12;
$custom-light: #abae60;
$custom-dark: #000000;
JSON
{
  "hex": "#838e12",
  "rgb": {
    "r": 131,
    "g": 142,
    "b": 18
  },
  "hsl": {
    "h": 65.323,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.61696,
    "c": 0.13511,
    "h": 115.2
  },
  "luminance": 0.24215
}

Semantic roles & 50–950 ramp

primary
#838E12
secondary
#463AC2
accent
#34F445
background
#FAFAF6
surface
#F5F4EB
border
#CFCEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #838E12

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

Preview Lab → · Contrast checker → · Palette generator →

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