#AFB23B#AFB23B

#AFB23B is a light, vivid yellow. Relative luminance 0.413; OKLCH L 73.9% C 0.139 H 110.8°. Best body text is #000000 at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#AFB23B
RGBrgb(175, 178, 59)
HSLhsl(62, 50%, 46%)
HSVhsv(62, 67%, 70%)
CMYKcmyk(1.7%, 0%, 66.9%, 30.2%)
CIE-LABlab(70.37, -15.98, 57.80)
CIE-LCHlch(70.37, 59.97, 105.45°)
OKLaboklab(73.9% -0.0492 0.1299)
OKLCHoklch(73.9% 0.139 110.8)
XYZxyz(34.3901, 41.2714, 10.2914)
Luminance0.4127 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB23B #3E3BB2
analogous
#B27A3B #AFB23B #74B23B
triadic
#AFB23B #3BAFB2 #B23BAF
tetradic
#AFB23B #3BB27A #3E3BB2 #B23B74
square
#AFB23B #3BB27A #3E3BB2 #B23B74
split-complementary
#AFB23B #3B74B2 #7A3BB2
monochromatic
#55561D #82842C #AFB23B #C8CA60 #D8DA8E

Accessibility & contrast

On white

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

On black

9.25
#AFB23B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB23B
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB23B#FFFFFF#000000##000000
##AFB23B1.002.279.259.25
#FFFFFF2.271.0021.0021.00
#0000009.2521.001.001.00
##0000009.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AA2A
Deuteranopia (green-blind)
#C1AE43
Tritanopia (blue-blind)
#BBA79A
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb23b;
/* rgb */ color: rgb(175, 178, 59);
/* oklch */ color: oklch(73.9% 0.139 110.8);
Tailwind
colors: {
  custom: {
    50: '#cac878',
    500: '#afb23b',
    950: '#000000',
  },
}
SCSS
$custom: #afb23b;
$custom-light: #cac878;
$custom-dark: #000000;
JSON
{
  "hex": "#afb23b",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 59
  },
  "hsl": {
    "h": 61.513,
    "s": 50.211,
    "l": 46.471
  },
  "oklch": {
    "l": 0.73903,
    "c": 0.13888,
    "h": 110.8
  },
  "luminance": 0.41271
}

Semantic roles & 50–950 ramp

primary
#AFB23B
secondary
#8685C4
accent
#4EDA52
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB23B

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

Preview Lab → · Contrast checker → · Palette generator →

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