#B2A23F#B2A23F

#B2A23F is a light, moderate yellow. Relative luminance 0.357; OKLCH L 70.7% C 0.120 H 100.1°. Best body text is #000000 at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#B2A23F
RGBrgb(178, 162, 63)
HSLhsl(52, 48%, 47%)
HSVhsv(52, 65%, 70%)
CMYKcmyk(0%, 9%, 64.6%, 30.2%)
CIE-LABlab(66.26, -6.10, 51.93)
CIE-LCHlch(66.26, 52.29, 96.70°)
OKLaboklab(70.71% -0.021 0.118)
OKLCHoklch(70.71% 0.12 100.1)
XYZxyz(32.1790, 35.6659, 9.8909)
Luminance0.3567 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A23F #3F4FB2
analogous
#B2683F #B2A23F #89B23F
triadic
#B2A23F #3FB2A2 #A23FB2
tetradic
#B2A23F #3FB268 #3F4FB2 #B23F89
square
#B2A23F #3FB268 #3F4FB2 #B23F89
split-complementary
#B2A23F #3F89B2 #683FB2
monochromatic
#58501F #85792F #B2A23F #C9BB66 #D9CF93

Accessibility & contrast

On white

2.58
#B2A23F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.13
#B2A23F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A23F
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A23F#FFFFFF#000000##000000
##B2A23F1.002.588.138.13
#FFFFFF2.581.0021.0021.00
#0000008.1321.001.001.00
##0000008.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19E33
Deuteranopia (green-blind)
#B5A444
Tritanopia (blue-blind)
#BF978D
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b2a23f;
/* rgb */ color: rgb(178, 162, 63);
/* oklch */ color: oklch(70.7% 0.120 100.1);
Tailwind
colors: {
  custom: {
    50: '#ccbd79',
    500: '#b2a23f',
    950: '#000000',
  },
}
SCSS
$custom: #b2a23f;
$custom-light: #ccbd79;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a23f",
  "rgb": {
    "r": 178,
    "g": 162,
    "b": 63
  },
  "hsl": {
    "h": 51.652,
    "s": 47.718,
    "l": 47.255
  },
  "oklch": {
    "l": 0.70709,
    "c": 0.11986,
    "h": 100.1
  },
  "luminance": 0.35665
}

Semantic roles & 50–950 ramp

primary
#B2A23F
secondary
#8991C4
accent
#63D750
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #B2A23F

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

Preview Lab → · Contrast checker → · Palette generator →

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