#AFB23C#AFB23C

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

Color values

HEX#AFB23C
RGBrgb(175, 178, 60)
HSLhsl(62, 50%, 47%)
HSVhsv(62, 66%, 70%)
CMYKcmyk(1.7%, 0%, 66.3%, 30.2%)
CIE-LABlab(70.37, -15.92, 57.41)
CIE-LCHlch(70.37, 59.58, 105.50°)
OKLaboklab(73.91% -0.049 0.1292)
OKLCHoklch(73.91% 0.138 110.8)
XYZxyz(34.4163, 41.2819, 10.4293)
Luminance0.4128 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB23C #3F3CB2
analogous
#B27A3C #AFB23C #74B23C
triadic
#AFB23C #3CAFB2 #B23CAF
tetradic
#AFB23C #3CB27A #3F3CB2 #B23C74
square
#AFB23C #3CB27A #3F3CB2 #B23C74
split-complementary
#AFB23C #3C74B2 #7A3CB2
monochromatic
#55561D #82842D #AFB23C #C7CA61 #D7D98F

Accessibility & contrast

On white

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

On black

9.26
#AFB23C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB23C
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB23C#FFFFFF#000000##000000
##AFB23C1.002.279.269.26
#FFFFFF2.271.0021.0021.00
#0000009.2621.001.001.00
##0000009.2621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afb23c;
/* rgb */ color: rgb(175, 178, 60);
/* oklch */ color: oklch(73.9% 0.138 110.8);
Tailwind
colors: {
  custom: {
    50: '#cac878',
    500: '#afb23c',
    950: '#000000',
  },
}
SCSS
$custom: #afb23c;
$custom-light: #cac878;
$custom-dark: #000000;
JSON
{
  "hex": "#afb23c",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 60
  },
  "hsl": {
    "h": 61.525,
    "s": 49.58,
    "l": 46.667
  },
  "oklch": {
    "l": 0.73911,
    "c": 0.13817,
    "h": 110.8
  },
  "luminance": 0.41281
}

Semantic roles & 50–950 ramp

primary
#AFB23C
secondary
#8786C4
accent
#4FD952
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB23C

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

Preview Lab → · Contrast checker → · Palette generator →

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