#B7A23F#B7A23F

#B7A23F is a light, vivid yellow. Relative luminance 0.363; OKLCH L 71.2% C 0.120 H 97.2°. Best body text is #000000 at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#B7A23F
RGBrgb(183, 162, 63)
HSLhsl(50, 49%, 48%)
HSVhsv(50, 66%, 72%)
CMYKcmyk(0%, 11.5%, 65.6%, 28.2%)
CIE-LABlab(66.72, -3.92, 52.56)
CIE-LCHlch(66.72, 52.70, 94.27°)
OKLaboklab(71.18% -0.0151 0.1192)
OKLCHoklch(71.18% 0.12 97.2)
XYZxyz(33.3475, 36.2684, 9.9456)
Luminance0.3627 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A23F #3F54B7
analogous
#B7663F #B7A23F #90B73F
triadic
#B7A23F #3FB7A2 #A23FB7
tetradic
#B7A23F #3FB766 #3F54B7 #B73F90
square
#B7A23F #3FB766 #3F54B7 #B73F90
split-complementary
#B7A23F #3F90B7 #663FB7
monochromatic
#5C5120 #897A2F #B7A23F #CBBA68 #DBCF96

Accessibility & contrast

On white

2.54
#B7A23F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.25
#B7A23F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7A23F
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7A23F#FFFFFF#000000##000000
##B7A23F1.002.548.258.25
#FFFFFF2.541.0021.0021.00
#0000008.2521.001.001.00
##0000008.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19E33
Deuteranopia (green-blind)
#B7A544
Tritanopia (blue-blind)
#C5968D
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b7a23f;
/* rgb */ color: rgb(183, 162, 63);
/* oklch */ color: oklch(71.2% 0.120 97.2);
Tailwind
colors: {
  custom: {
    50: '#d0bd79',
    500: '#b7a23f',
    950: '#000000',
  },
}
SCSS
$custom: #b7a23f;
$custom-light: #d0bd79;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a23f",
  "rgb": {
    "r": 183,
    "g": 162,
    "b": 63
  },
  "hsl": {
    "h": 49.5,
    "s": 48.78,
    "l": 48.235
  },
  "oklch": {
    "l": 0.71183,
    "c": 0.12014,
    "h": 97.2
  },
  "luminance": 0.36267
}

Semantic roles & 50–950 ramp

primary
#B7A23F
secondary
#8B96C6
accent
#67D84F
background
#FDFBF7
surface
#FAF6EE
border
#D3D0C9
text
#141209
muted
#83817B

Preview Lab

Preview with #B7A23F

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

Preview Lab → · Contrast checker → · Palette generator →

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