#AFB231#AFB231

#AFB231 is a light, vivid yellow. Relative luminance 0.412; OKLCH L 73.8% C 0.145 H 110.8°. Best body text is #000000 at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#AFB231
RGBrgb(175, 178, 49)
HSLhsl(61, 57%, 45%)
HSVhsv(61, 72%, 70%)
CMYKcmyk(1.7%, 0%, 72.5%, 30.2%)
CIE-LABlab(70.30, -16.51, 61.50)
CIE-LCHlch(70.30, 63.68, 105.03°)
OKLaboklab(73.83% -0.0517 0.1359)
OKLCHoklch(73.83% 0.145 110.8)
XYZxyz(34.1551, 41.1774, 9.0540)
Luminance0.4118 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB231 #3431B2
analogous
#B27431 #AFB231 #6FB231
triadic
#AFB231 #31AFB2 #B231AF
tetradic
#AFB231 #31B274 #3431B2 #B2316F
square
#AFB231 #31B274 #3431B2 #B2316F
split-complementary
#AFB231 #316FB2 #7431B2
monochromatic
#515217 #808224 #AFB231 #CCCF51 #DADC81

Accessibility & contrast

On white

2.27
#AFB231 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.24
#AFB231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB231
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB231#FFFFFF#000000##000000
##AFB2311.002.279.249.24
#FFFFFF2.271.0021.0021.00
#0000009.2421.001.001.00
##0000009.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AA18
Deuteranopia (green-blind)
#C1AE3B
Tritanopia (blue-blind)
#BBA799
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb231;
/* rgb */ color: rgb(175, 178, 49);
/* oklch */ color: oklch(73.8% 0.145 110.8);
Tailwind
colors: {
  custom: {
    50: '#cac872',
    500: '#afb231',
    950: '#000000',
  },
}
SCSS
$custom: #afb231;
$custom-light: #cac872;
$custom-dark: #000000;
JSON
{
  "hex": "#afb231",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 49
  },
  "hsl": {
    "h": 61.395,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.7383,
    "c": 0.14545,
    "h": 110.8
  },
  "luminance": 0.41177
}

Semantic roles & 50–950 ramp

primary
#AFB231
secondary
#7B79C5
accent
#48E04B
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB231

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

Preview Lab → · Contrast checker → · Palette generator →

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