#BAC123#BAC123

#BAC123 is a light, vivid yellow. Relative luminance 0.487; OKLCH L 78.0% C 0.165 H 112.4°. Best body text is #000000 at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#BAC123
RGBrgb(186, 193, 35)
HSLhsl(63, 69%, 45%)
HSVhsv(63, 82%, 76%)
CMYKcmyk(3.6%, 0%, 81.9%, 24.3%)
CIE-LABlab(75.27, -19.87, 70.55)
CIE-LCHlch(75.27, 73.29, 105.73°)
OKLaboklab(78% -0.0627 0.1523)
OKLCHoklch(78% 0.165 112.4)
XYZxyz(39.6244, 48.7014, 8.9028)
Luminance0.4870 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC123 #2A23C1
analogous
#C17923 #BAC123 #6BC123
triadic
#BAC123 #23BAC1 #C123BA
tetradic
#BAC123 #23C179 #2A23C1 #C1236B
square
#BAC123 #23C179 #2A23C1 #C1236B
split-complementary
#BAC123 #236BC1 #7923C1
monochromatic
#565910 #888D1A #BAC123 #D6DD44 #E2E678

Accessibility & contrast

On white

1.96
#BAC123 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.74
#BAC123 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC123
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC123#FFFFFF#000000##000000
##BAC1231.001.9610.7410.74
#FFFFFF1.961.0021.0021.00
#00000010.7421.001.001.00
##00000010.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B800
Deuteranopia (green-blind)
#D1BB33
Tritanopia (blue-blind)
#C7B5A5
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #bac123;
/* rgb */ color: rgb(186, 193, 35);
/* oklch */ color: oklch(78.0% 0.165 112.4);
Tailwind
colors: {
  custom: {
    50: '#d3d36e',
    500: '#bac123',
    950: '#000000',
  },
}
SCSS
$custom: #bac123;
$custom-light: #d3d36e;
$custom-dark: #000000;
JSON
{
  "hex": "#bac123",
  "rgb": {
    "r": 186,
    "g": 193,
    "b": 35
  },
  "hsl": {
    "h": 62.658,
    "s": 69.298,
    "l": 44.706
  },
  "oklch": {
    "l": 0.77997,
    "c": 0.16473,
    "h": 112.4
  },
  "luminance": 0.487
}

Semantic roles & 50–950 ramp

primary
#BAC123
secondary
#7672CE
accent
#3CEC43
background
#FDFCF7
surface
#FBF9ED
border
#D4D2C8
text
#151408
muted
#83827B

Preview Lab

Preview with #BAC123

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

Preview Lab → · Contrast checker → · Palette generator →

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