#838F12#838F12

#838F12 is a mid, vivid yellow. Relative luminance 0.245; OKLCH L 61.9% C 0.136 H 115.7°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#838F12
RGBrgb(131, 143, 18)
HSLhsl(66, 78%, 32%)
HSVhsv(66, 87%, 56%)
CMYKcmyk(8.4%, 0%, 87.4%, 43.9%)
CIE-LABlab(56.60, -19.08, 57.13)
CIE-LCHlch(56.60, 60.23, 108.47°)
OKLaboklab(61.93% -0.059 0.1228)
OKLCHoklch(61.93% 0.136 115.7)
XYZxyz(19.2923, 24.5142, 4.2876)
Luminance0.2451 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838F12 #1E128F
analogous
#8F5D12 #838F12 #458F12
triadic
#838F12 #12838F #8F1283
tetradic
#838F12 #128F5D #1E128F #8F1245
square
#838F12 #128F5D #1E128F #8F1245
split-complementary
#838F12 #12458F #5D128F
monochromatic
#1F2204 #51590B #838F12 #B5C519 #D5E636

Accessibility & contrast

On white

3.56
#838F12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#838F12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838F12
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838F12#FFFFFF#000000##000000
##838F121.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8700
Deuteranopia (green-blind)
#998921
Tritanopia (blue-blind)
#8C8679
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #838f12;
/* rgb */ color: rgb(131, 143, 18);
/* oklch */ color: oklch(61.9% 0.136 115.7);
Tailwind
colors: {
  custom: {
    50: '#abaf60',
    500: '#838f12',
    950: '#000000',
  },
}
SCSS
$custom: #838f12;
$custom-light: #abaf60;
$custom-dark: #000000;
JSON
{
  "hex": "#838f12",
  "rgb": {
    "r": 131,
    "g": 143,
    "b": 18
  },
  "hsl": {
    "h": 65.76,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.61934,
    "c": 0.13619,
    "h": 115.7
  },
  "luminance": 0.24514
}

Semantic roles & 50–950 ramp

primary
#838F12
secondary
#473AC3
accent
#34F446
background
#FAFAF6
surface
#F5F4EB
border
#CFCEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #838F12

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

Preview Lab → · Contrast checker → · Palette generator →

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