#A6B231#A6B231

#A6B231 is a light, vivid yellow. Relative luminance 0.402; OKLCH L 73.1% C 0.148 H 114.8°. Best body text is #000000 at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#A6B231
RGBrgb(166, 178, 49)
HSLhsl(66, 57%, 45%)
HSVhsv(66, 72%, 70%)
CMYKcmyk(6.7%, 0%, 72.5%, 30.2%)
CIE-LABlab(69.59, -20.36, 60.57)
CIE-LCHlch(69.59, 63.90, 108.58°)
OKLaboklab(73.09% -0.0619 0.1343)
OKLCHoklch(73.09% 0.148 114.8)
XYZxyz(32.2016, 40.1701, 8.9624)
Luminance0.4017 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6B231 #3D31B2
analogous
#B27D31 #A6B231 #66B231
triadic
#A6B231 #31A6B2 #B231A6
tetradic
#A6B231 #31B27D #3D31B2 #B23166
square
#A6B231 #31B27D #3D31B2 #B23166
split-complementary
#A6B231 #3166B2 #7D31B2
monochromatic
#4C5217 #798224 #A6B231 #C3CF51 #D4DC81

Accessibility & contrast

On white

2.32
#A6B231 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.03
#A6B231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6B231
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6B231#FFFFFF#000000##000000
##A6B2311.002.329.039.03
#FFFFFF2.321.0021.0021.00
#0000009.0321.001.001.00
##0000009.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA918
Deuteranopia (green-blind)
#BEAB3B
Tritanopia (blue-blind)
#B1A899
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a6b231;
/* rgb */ color: rgb(166, 178, 49);
/* oklch */ color: oklch(73.1% 0.148 114.8);
Tailwind
colors: {
  custom: {
    50: '#c4c872',
    500: '#a6b231',
    950: '#000000',
  },
}
SCSS
$custom: #a6b231;
$custom-light: #c4c872;
$custom-dark: #000000;
JSON
{
  "hex": "#a6b231",
  "rgb": {
    "r": 166,
    "g": 178,
    "b": 49
  },
  "hsl": {
    "h": 65.581,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.73087,
    "c": 0.14788,
    "h": 114.8
  },
  "luminance": 0.4017
}

Semantic roles & 50–950 ramp

primary
#A6B231
secondary
#8079C5
accent
#48E056
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A6B231

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

Preview Lab → · Contrast checker → · Palette generator →

#A6B231 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva